summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-10-15 10:36:23 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2012-10-15 10:39:03 (GMT)
commite03d4139ab2058a7f1d2dc7ef8c123f42e2d8f6a (patch)
treeab336c413029682a90faa808ab48ffd2296d1358
parentd0bce4bffa4635126428f87d3c1f5c2fb7fefdb2 (diff)
downloadroundcubemail-plugins-kolab-e03d4139ab2058a7f1d2dc7ef8c123f42e2d8f6a.tar.gz
Fix fatal error on event without an UID and PHP warning (Bug #1108)
-rw-r--r--plugins/calendar/lib/calendar_ical.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/calendar/lib/calendar_ical.php b/plugins/calendar/lib/calendar_ical.php
index d79a917..d2ec2c9 100644
--- a/plugins/calendar/lib/calendar_ical.php
+++ b/plugins/calendar/lib/calendar_ical.php
@@ -158,6 +158,7 @@ class calendar_ical
// set defaults
'free_busy' => 'busy',
'priority' => 0,
+ 'attendees' => array(),
);
// check for all-day dates
@@ -307,7 +308,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;
}