Index: openacs-4/packages/dotlrn-ecommerce/lib/section.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/section.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 27 Jul 2005 23:04:42 -0000 1.18 +++ openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 1 Aug 2005 00:06:57 -0000 1.19 @@ -559,7 +559,9 @@ # Map patron relationships set tree_id [parameter::get -package_id [ad_conn package_id] -parameter PatronRelationshipCategoryTree -default 0] - category_tree::map -tree_id $tree_id -object_id $community_id + if {!$tree_id == 0} { + category_tree::map -tree_id $tree_id -object_id $community_id + } # Prerequisites if { [info exists prerequisites] } {