mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
"fixed category sync problem reported by sezuan <supportrq-at-sucksass.de>"
This commit is contained in:
parent
aad76dd0bd
commit
41049cc707
@ -1309,6 +1309,12 @@ class boinfolog
|
||||
return $cat_id_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get names for categories specified by their id's
|
||||
*
|
||||
* @param array|string $cat_id_list array or comma-sparated list of id's
|
||||
* @return array with names
|
||||
*/
|
||||
function get_categories($cat_id_list)
|
||||
{
|
||||
if (!is_object($this->glob_cat))
|
||||
@ -1326,7 +1332,7 @@ class boinfolog
|
||||
}
|
||||
|
||||
$cat_list = array();
|
||||
foreach(explode(',',$cat_id_list) as $cat_id)
|
||||
foreach(is_array($cat_id_list) ? $cat_id_list : explode(',',$cat_id_list) as $cat_id)
|
||||
{
|
||||
if ( ($cat_data = $this->glob_cat->return_single($cat_id))
|
||||
|| ($cat_data = $this->app_cat->return_single($cat_id)) )
|
||||
|
Loading…
Reference in New Issue
Block a user