Fix fatal error

This commit is contained in:
Thomas Bruederli 2012-08-04 18:12:34 +02:00
parent f650ca55bd
commit d75f7f2af7

View file

@ -423,7 +423,7 @@ class kolab_calendar
// all-day events go from 12:00 - 13:00
if ($record['end'] <= $record['start'] && $record['allday']) {
$record['end'] = clone $record['start'];
$record['end']->add(new DateTimeInterval('PT1H'));
$record['end']->add(new DateInterval('PT1H'));
}
if (!empty($record['_attachments'])) {