From 9a61c161815e1c2979b64efa5469f688d35dc304 Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 27 Jun 2017 10:31:18 -0600 Subject: [PATCH] * Calendar - Fix selected owner goes missing on logout --- calendar/inc/class.calendar_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_ui.inc.php b/calendar/inc/class.calendar_ui.inc.php index bcf8890dd9..1db1738a00 100644 --- a/calendar/inc/class.calendar_ui.inc.php +++ b/calendar/inc/class.calendar_ui.inc.php @@ -559,7 +559,7 @@ class calendar_ui if (!is_array($cont)) $cont = array(); $cont['view'] = $this->view ? $this->view : 'week'; $cont['date'] = $this->date ? $this->date : new Api\DateTime(); - $cont['owner'] = $this->owner ? $this->owner : $cont['owner']; + $cont['owner'] = $this->owner ? (is_array($this->owner) ? $this->owner : explode(',',$this->owner) ) : $cont['owner']; $cont['year'] = (int)Api\DateTime::to($cont['date'],'Y'); $cont['holidays'] = $this->bo->read_holidays($cont['year']);