forked from extern/egroupware
* API: fix for wrong (unexpected array) type passed in check_list
This commit is contained in:
parent
ed24fa796d
commit
16014f8067
@ -482,7 +482,11 @@ class categories
|
||||
function check_list($needed, $cat_list)
|
||||
{
|
||||
if (empty($cat_list)) return $cat_list;
|
||||
|
||||
if (is_array($cat_list))
|
||||
{
|
||||
$cat_list = implode(',',$cat_list);
|
||||
//error_log(__METHOD__.__LINE__.' string expected, array found for cat_list. Converted to:'.$cat_list);
|
||||
}
|
||||
$cat_arr = explode(',',$cat_list);
|
||||
if (!empty($cat_arr) && is_array($cat_arr) && count($cat_arr) > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user