fix for bug #261: PHP error on Planner by category and Planner by user

This commit is contained in:
Ralf Becker 2007-01-03 08:13:10 +00:00
parent b080fa16bb
commit de0ddd43ba

View File

@ -1361,6 +1361,8 @@ class uiviews extends uical
{ {
$sort2label = $this->_get_planner_users(); $sort2label = $this->_get_planner_users();
} }
if (!is_array($events)) $events = array();
foreach($events as $key => $event) foreach($events as $key => $event)
{ {
if ($by_cat === false) // planner by user if ($by_cat === false) // planner by user