Index: openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl,v diff -u -N -r1.10.2.4 -r1.10.2.5 --- openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl 5 Jan 2016 14:55:50 -0000 1.10.2.4 +++ openacs-4/packages/acs-subsite/www/shared/portrait-bits.tcl 5 Jan 2016 15:29:27 -0000 1.10.2.5 @@ -24,7 +24,13 @@ if {$size eq ""} { cr_write_content -item_id $item_id } else { - content::item::get -item_id $item_id -array_name itemInfo + if {[content::item::get -item_id $item_id -array_name itemInfo] == 0} { + if {[content::item::get -item_id $item_id -array_name itemInfo -revision latest] == 0} { + ad_log warning "cannot obtain revision info for item_id $item_id user_id $user_id" + ns_returnnotfound + ad_script_abort + } + } # # For portraits stored as files in the content repository,