From ff708d49171d503433ef58c8ba113de2caf910c7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 16 Mar 2003 22:16:33 +0000 Subject: [PATCH] skwashd's patch to be able to retrive entries with parent_id == 0 --- phpgwapi/inc/class.categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'"; }