Branch 'roundcubemail-plugins-kolab-3.0' - plugins/calendar

Thomas Brüderli bruederli at kolabsys.com
Wed Sep 11 10:01:22 CEST 2013


 plugins/calendar/calendar.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 998829f6df3b21cb50c08db39d6469fd43dec4be
Author: Thomas Bruederli <bruederli at kolabsys.com>
Date:   Wed Sep 11 10:00:48 2013 +0200

    Avoid warnings when event['recurrence'] is a string

diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php
index 6e9324b..6eb5ca5 100644
--- a/plugins/calendar/calendar.php
+++ b/plugins/calendar/calendar.php
@@ -1290,7 +1290,7 @@ class calendar extends rcube_plugin
       return;
     }
 
-    if ($event['recurrence']['UNTIL'])
+    if (is_array($event['recurrence']) && !empty($event['recurrence']['UNTIL']))
       $event['recurrence']['UNTIL'] = new DateTime($event['recurrence']['UNTIL'], $this->timezone);
 
     $attachments = array();




More information about the commits mailing list