Index: openacs-4/packages/static-portlet/www/static-portlet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/static-portlet/www/static-portlet.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/static-portlet/www/static-portlet.tcl 18 Feb 2002 20:23:00 -0000 1.3 +++ openacs-4/packages/static-portlet/www/static-portlet.tcl 4 Mar 2002 22:45:51 -0000 1.4 @@ -11,10 +11,10 @@ # one piece of content only per portlet set content_id $config(content_id) -if {[catch {set success_p [db_0or1row select_content { +set success_p 0 + +set success_p [db_0or1row select_content { select content, pretty_name from static_portal_content where content_id = :content_id -}]} errmsg]} { - set success_p 0 -} +}]