Index: openacs.org-dev/packages/cms/www/modules/items/unrelate-item.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/cms/www/modules/items/unrelate-item.tcl,v diff -u -r1.1.1.1 -r1.1.1.2 --- openacs.org-dev/packages/cms/www/modules/items/unrelate-item.tcl 9 Jul 2002 17:35:03 -0000 1.1.1.1 +++ openacs.org-dev/packages/cms/www/modules/items/unrelate-item.tcl 8 Oct 2002 15:47:02 -0000 1.1.1.2 @@ -8,10 +8,9 @@ db_transaction { # Get the item_id; determine if the relationship exists - template::query get_item_id item_id onevalue " - select item_id from cr_item_rels where rel_id = :rel_id" + set item_id [db_string get_item_id "" -default ""] - if { [template::util::is_nil item_id] } { + if { [string equal $item_id ""] } { db_abort_transaction request::error no_such_rel "The relationship $rel_id does not exist." return