mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
handle warning on cat_id when it is not a string, as expected on explode but already an array of cat-ids
This commit is contained in:
parent
5b81fca2f1
commit
34502fc66f
@ -167,7 +167,7 @@ class calendar_uiviews extends calendar_ui
|
|||||||
$this->owner = str_replace('%2C',',',$this->owner);
|
$this->owner = str_replace('%2C',',',$this->owner);
|
||||||
$this->search_params = array(
|
$this->search_params = array(
|
||||||
'start' => $this->date,
|
'start' => $this->date,
|
||||||
'cat_id' => $this->cat_id ? explode(',',$this->cat_id) : 0,
|
'cat_id' => $this->cat_id ? (is_array($this->cat_id)?$this->cat_id:explode(',',$this->cat_id)) : 0,
|
||||||
'users' => explode(',',$this->owner),
|
'users' => explode(',',$this->owner),
|
||||||
'filter' => $this->filter,
|
'filter' => $this->filter,
|
||||||
'daywise' => True,
|
'daywise' => True,
|
||||||
|
Loading…
Reference in New Issue
Block a user