From b052ffeb0a7d039a0b3d430b43c07497edd21213 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 28 Sep 2010 08:25:23 +0000 Subject: [PATCH] allow cats for planner to be an array --- calendar/inc/class.calendar_uiviews.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']);