Index: openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl,v diff -u -r1.33 -r1.33.2.1 --- openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl 12 Jul 2004 14:49:57 -0000 1.33 +++ openacs-4/packages/dotlrn-static/tcl/dotlrn-static-procs.tcl 23 Feb 2006 23:18:16 -0000 1.33.2.1 @@ -116,7 +116,11 @@ ns_set put $args "package_id" $community_id ns_set put $args "template_id" $template_id - set new_content_id [add_portlet_helper $portal_id $args] + # quit if new_content_id is empty, this means the template + # portal does not have custom portlets + if { [set new_content_id [add_portlet_helper $portal_id $args]] eq "" } { + return + } # the non-member portal uses the returned content_id from # the main page above to create a linked static portlet