plugins/calendar

Aleksander Machniak machniak at kolabsys.com
Mon Oct 15 12:37:19 CEST 2012


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

New commits:
commit 2b3d7f99261b4bc15e45f0e85305a71cde054a7e
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 cf5f72c..594993e 100644
--- a/plugins/calendar/lib/calendar_ical.php
+++ b/plugins/calendar/lib/calendar_ical.php
@@ -149,6 +149,7 @@ class calendar_ical
       // set defaults
       'free_busy' => 'busy',
       'priority' => 0,
+      'attendees' => array(),
     );
 
     // check for all-day dates
@@ -299,7 +300,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