Index: openacs-4/packages/categories/tcl/categories-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/categories/tcl/categories-procs.tcl,v diff -u -r1.38.2.4 -r1.38.2.5 --- openacs-4/packages/categories/tcl/categories-procs.tcl 26 Apr 2019 16:18:21 -0000 1.38.2.4 +++ openacs-4/packages/categories/tcl/categories-procs.tcl 26 Apr 2019 16:21:57 -0000 1.38.2.5 @@ -502,9 +502,10 @@ @return tree_id of the tree the category belongs to. @author Timo Hentschel (timo@timohentschel.de) } { - if { [catch { set tree_id [lindex [nsv_get categories $category_id] 0] }] } { - # category not found - return {} + if {[nsv_names categories] ne "" && [nsv_exists categories $category_id]} { + set tree_id [lindex [nsv_get categories $category_id] 0] + } else { + set tree_id "" } return $tree_id }