forked from extern/egroupware
* Calendar: fix PHP Fatal when clicking on a link to accept/decline an invitation mail
This commit is contained in:
parent
e2ce3c7698
commit
1dc5a8ee21
@ -555,7 +555,7 @@ class calendar_ui
|
||||
$cont = $this->cal_prefs['saved_states'];
|
||||
if (!is_array($cont)) $cont = array();
|
||||
$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['holidays'] = $this->bo->read_holidays($cont['year']);
|
||||
|
Loading…
Reference in New Issue
Block a user