mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 11:51:43 +02:00
Do not return null for return_array function as expected to return always an array
This commit is contained in:
parent
9319954d39
commit
08729a9df8
@ -288,7 +288,7 @@ class categories
|
|||||||
if (!($this->total_records = count($cats)))
|
if (!($this->total_records = count($cats)))
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__."($type,$start,$limit,$query,$sort,$order,$globals,parent=$parent_id,$lastmod,$column) account_id=$this->account_id, appname=$this->app_name = FALSE");
|
//error_log(__METHOD__."($type,$start,$limit,$query,$sort,$order,$globals,parent=$parent_id,$lastmod,$column) account_id=$this->account_id, appname=$this->app_name = FALSE");
|
||||||
return false;
|
return array();
|
||||||
}
|
}
|
||||||
if (!$sort) $sort = 'ASC';
|
if (!$sort) $sort = 'ASC';
|
||||||
// order the entries if necessary (cache is already ordered in or default order: cat_main, cat_level, cat_name ASC)
|
// order the entries if necessary (cache is already ordered in or default order: cat_main, cat_level, cat_name ASC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user