allow cats for planner to be an array

This commit is contained in:
Klaus Leithoff 2010-09-28 08:25:23 +00:00
parent 5524c3573c
commit b052ffeb0a

View File

@ -2124,7 +2124,7 @@ function open_edit(series)
$cat2sort = array();
foreach((array)$this->categories->return_array('all',0,false,'','','',true) as $data)
{
if ($data['parent'] == $this->cat_id || $data['id'] == $this->cat_id) // cat is a direct sub of $this->cat_id
if (in_array($data['parent'], (array)$this->cat_id) || in_array($data['id'], (array)$this->cat_id)) // cat is a direct sub of $this->cat_id
{
$cat2sort[$data['id']] = $data['id'];
$sort2label[$data['id']] = stripslashes($data['name']);