mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
skwashd's patch to be able to retrive entries with parent_id == 0
This commit is contained in:
parent
bd94f4e049
commit
ff708d4917
@ -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'";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user