From 9b794c71e5fa9162fa694a4a40cfc7de9e41ecac Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 14 Jun 2011 15:03:13 +0000 Subject: [PATCH] Fix 'All categories' no longer working after multiple-categories change --- calendar/inc/class.calendar_uilist.inc.php | 2 +- calendar/inc/class.calendar_uiviews.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_uilist.inc.php b/calendar/inc/class.calendar_uilist.inc.php index 70631a23d5..4b8a015186 100644 --- a/calendar/inc/class.calendar_uilist.inc.php +++ b/calendar/inc/class.calendar_uilist.inc.php @@ -257,7 +257,7 @@ class calendar_uilist extends calendar_ui } } $search_params = array( - 'cat_id' => explode(',',$this->cat_id), + 'cat_id' => $this->cat_id ? explode(',',$this->cat_id) : 0, 'filter' => $this->filter, 'query' => $params['search'], 'offset' => (int) $params['start'], diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index ba590d2e3a..8051a58a27 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -162,7 +162,7 @@ class calendar_uiviews extends calendar_ui $this->owner = str_replace('%2C',',',$this->owner); $this->search_params = array( 'start' => $this->date, - 'cat_id' => explode(',',$this->cat_id), + 'cat_id' => $this->cat_id ? explode(',',$this->cat_id) : 0, 'users' => explode(',',$this->owner), 'filter' => $this->filter, 'daywise' => True,