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

Aleksander Machniak machniak at kolabsys.com
Mon Oct 15 12:38:31 CEST 2012


 plugins/calendar/lib/calendar_ical.php |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0ddd3fad15c5dc42a102218524ecffbceb9d2587
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Mon Oct 15 12:36:23 2012 +0200

    Fix fatal error on event without an UID and PHP warning (Bug #1108)

diff --git a/plugins/calendar/lib/calendar_ical.php b/plugins/calendar/lib/calendar_ical.php
index c99fab3..7808dc3 100644
--- a/plugins/calendar/lib/calendar_ical.php
+++ b/plugins/calendar/lib/calendar_ical.php
@@ -146,6 +146,7 @@ class calendar_ical
       // set defaults
       'free_busy' => 'busy',
       'priority' => 0,
+      'attendees' => array(),
     );
     
     // check for all-day dates
@@ -295,7 +296,7 @@ class calendar_ical
 
     // make sure the event has an UID
     if (!$event['uid'])
-      $event['uid'] = $this->cal->$this->generate_uid();
+      $event['uid'] = $this->cal->generate_uid();
     
     return $event;
   }





More information about the commits mailing list