diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 36987e856a..ff85a66897 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -138,7 +138,7 @@ @param $globals True or False, includes the global phpgroupware categories or not @result $cats array */ - function return_array($type,$start,$limit = True,$query = '',$sort = '',$order = '',$globals = False, $parent_id = '') + function return_array($type,$start,$limit = True,$query = '',$sort = '',$order = '',$globals = False, $parent_id = '## undef ##') { if ($globals) { @@ -183,7 +183,7 @@ } } - if ($parent_id) + if ($parent_id != '## undef ##') { $parent_filter = " AND cat_parent='$parent_id'"; }