* Calendar: fix PHP Fatal when clicking on a link to accept/decline an invitation mail

This commit is contained in:
Ralf Becker 2016-08-17 11:40:40 +02:00
parent e2ce3c7698
commit 1dc5a8ee21

View File

@ -555,7 +555,7 @@ class calendar_ui
$cont = $this->cal_prefs['saved_states']; $cont = $this->cal_prefs['saved_states'];
if (!is_array($cont)) $cont = array(); if (!is_array($cont)) $cont = array();
$cont['view'] = $this->view ? $this->view : 'week'; $cont['view'] = $this->view ? $this->view : 'week';
$cont['date'] = $this->date ? $this->date : Api\DateTime(); $cont['date'] = $this->date ? $this->date : new Api\DateTime();
$cont['year'] = (int)Api\DateTime::to($cont['date'],'Y'); $cont['year'] = (int)Api\DateTime::to($cont['date'],'Y');
$cont['holidays'] = $this->bo->read_holidays($cont['year']); $cont['holidays'] = $this->bo->read_holidays($cont['year']);