From ad40d615b184e315c2180713932575a9eff9341a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 10 May 2017 12:54:57 +0200 Subject: [PATCH] One more PHP7 warning in calendar plugin code (Bifrost#T31309) --- plugins/calendar/drivers/kolab/kolab_user_calendar.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/drivers/kolab/kolab_user_calendar.php b/plugins/calendar/drivers/kolab/kolab_user_calendar.php index fd9280dd..62e51414 100644 --- a/plugins/calendar/drivers/kolab/kolab_user_calendar.php +++ b/plugins/calendar/drivers/kolab/kolab_user_calendar.php @@ -124,7 +124,7 @@ class kolab_user_calendar extends kolab_calendar /** * Return color to display this calendar */ - public function get_color() + public function get_color($default = null) { // calendar color is stored in local user prefs $prefs = $this->cal->rc->config->get('kolab_calendars', array()); @@ -132,7 +132,7 @@ class kolab_user_calendar extends kolab_calendar if (!empty($prefs[$this->id]) && !empty($prefs[$this->id]['color'])) return $prefs[$this->id]['color']; - return 'cc0000'; + return $default ?: 'cc0000'; } /**