Fix 'All categories' no longer working after multiple-categories change

This commit is contained in:
Nathan Gray 2011-06-14 15:03:13 +00:00
parent 7b2a5dd23f
commit 9b794c71e5
2 changed files with 2 additions and 2 deletions

View File

@ -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'],

View File

@ -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,