diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index e6721ab775..92250c48f9 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -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']);