skwashd's patch to be able to retrive entries with parent_id == 0

This commit is contained in:
Ralf Becker 2003-03-16 22:16:33 +00:00
parent bd94f4e049
commit ff708d4917

View File

@ -138,7 +138,7 @@
@param $globals True or False, includes the global phpgroupware categories or not @param $globals True or False, includes the global phpgroupware categories or not
@result $cats array @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) if ($globals)
{ {
@ -183,7 +183,7 @@
} }
} }
if ($parent_id) if ($parent_id != '## undef ##')
{ {
$parent_filter = " AND cat_parent='$parent_id'"; $parent_filter = " AND cat_parent='$parent_id'";
} }