plugins/libkolab
Thomas Brüderli
bruederli at kolabsys.com
Wed Jan 15 16:36:53 CET 2014
plugins/libkolab/lib/kolab_date_recurrence.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b0e06ccdb7837aefcb91e1303fe4bf8f4b111730
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date: Wed Jan 15 16:32:34 2014 +0100
Avoid fatal errors in case the event object has invalid date properties
diff --git a/plugins/libkolab/lib/kolab_date_recurrence.php b/plugins/libkolab/lib/kolab_date_recurrence.php
index 85ffd91..1dc63be 100644
--- a/plugins/libkolab/lib/kolab_date_recurrence.php
+++ b/plugins/libkolab/lib/kolab_date_recurrence.php
@@ -118,7 +118,7 @@ class kolab_date_recurrence
}
// determine a reasonable end date if none given
- if (!$event['recurrence']['COUNT']) {
+ if (!$event['recurrence']['COUNT'] && $event['start'] instanceof DateTime) {
switch ($event['recurrence']['FREQ']) {
case 'YEARLY': $intvl = 'P100Y'; break;
case 'MONTHLY': $intvl = 'P20Y'; break;
More information about the commits
mailing list