Fix handling of end date in time_key()

This commit is contained in:
Aleksander Machniak 2016-06-29 19:28:12 +02:00
parent c43008b94f
commit 5a148797e1

View file

@ -365,7 +365,7 @@ class kolab_user_calendar extends kolab_calendar
*/ */
private function time_key($event) private function time_key($event)
{ {
return sprintf('%s/%s', $event['start']->format('U'), is_object($event['end']->format('U')) ?: '0'); return sprintf('%s/%s', $event['start']->format('U'), is_object($event['end']) ? $event['end']->format('U') : '0');
} }
/** /**