Index: openacs-4/packages/photo-album/www/photo-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/www/photo-add-2.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/photo-album/www/photo-add-2.tcl 10 Jun 2003 10:07:11 -0000 1.1 +++ openacs-4/packages/photo-album/www/photo-add-2.tcl 12 Jun 2003 06:55:45 -0000 1.2 @@ -23,7 +23,7 @@ } valid_photo_id -requires {photo_id:integer} { # supplied photo_id must not already exist - if {[db_string check_photo_id "select count(*) from cr_items where item_id = :photo_id"]} { + if {[db_string check_photo_id {}]} { ad_complain "The photo already exists. Check if it is already in the album." } }