summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-01-08 12:46:20 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-01-08 12:46:20 (GMT)
commit1dd6cc8a0bbce39c181ee101150653aecc21f074 (patch)
tree427fbaa349bb9aff996ce8cd3ee4bd927cb566c5
parent3af4b1c4f878b22d846485f17020fb364230b600 (diff)
downloadroundcubemail-plugins-kolab-1dd6cc8a0bbce39c181ee101150653aecc21f074.tar.gz
Check for valid datetime object before cloning (#3958)
-rw-r--r--plugins/calendar/drivers/kolab/kolab_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/calendar/drivers/kolab/kolab_driver.php b/plugins/calendar/drivers/kolab/kolab_driver.php
index f33267a..94e1e41 100644
--- a/plugins/calendar/drivers/kolab/kolab_driver.php
+++ b/plugins/calendar/drivers/kolab/kolab_driver.php
@@ -1351,7 +1351,7 @@ class kolab_driver extends calendar_driver
$record['id'] = $record['uid'];
// all-day events go from 12:00 - 13:00
- if ($record['end'] <= $record['start'] && $record['allday']) {
+ if (is_a($record['start'], 'DateTime') && $record['end'] <= $record['start'] && $record['allday']) {
$record['end'] = clone $record['start'];
$record['end']->add(new DateInterval('PT1H'));
}