* API: fix for wrong (unexpected array) type passed in check_list

This commit is contained in:
Klaus Leithoff 2013-07-08 08:04:41 +00:00
parent ed24fa796d
commit 16014f8067

View File

@ -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)
{