Fix handling of end date in time_key()
This commit is contained in:
parent
c43008b94f
commit
5a148797e1
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ class kolab_user_calendar extends kolab_calendar
|
|||
*/
|
||||
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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue