From de0ddd43ba0759a9ae6fcbca54ea8ea1ce8a105d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 3 Jan 2007 08:13:10 +0000 Subject: [PATCH] fix for bug #261: PHP error on Planner by category and Planner by user --- calendar/inc/class.uiviews.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calendar/inc/class.uiviews.inc.php b/calendar/inc/class.uiviews.inc.php index 4d30a7736d..c5be8268c5 100644 --- a/calendar/inc/class.uiviews.inc.php +++ b/calendar/inc/class.uiviews.inc.php @@ -1361,6 +1361,8 @@ class uiviews extends uical { $sort2label = $this->_get_planner_users(); } + if (!is_array($events)) $events = array(); + foreach($events as $key => $event) { if ($by_cat === false) // planner by user