Index: openacs.org-dev/packages/cms/www/modules/items/revision-add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/cms/www/modules/items/revision-add-2.tcl,v diff -u -r1.1.1.1 -r1.1.1.2 --- openacs.org-dev/packages/cms/www/modules/items/revision-add-2.tcl 9 Jul 2002 17:35:03 -0000 1.1.1.1 +++ openacs.org-dev/packages/cms/www/modules/items/revision-add-2.tcl 8 Oct 2002 15:47:02 -0000 1.1.1.2 @@ -8,17 +8,8 @@ content::check_access $item_id cm_write -user_id [User::getID] # get content_type and name of item -template::query get_one_item one_item onerow " - select - content_type, name - from - cr_items - where - item_id = :item_id -" +db_0or1row get_one_item "" -template::util::array_to_vars one_item - # validate item_id if { [template::util::is_nil content_type] } { template::request::error add_revision "Error - invalid item_id - $item_id"