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:38:23 (GMT)
commit0ddd3fad15c5dc42a102218524ecffbceb9d2587 (patch)
tree0d56b39d5b43dffb6ebe296656208b076914331c
parentaf8f351ed45f57edc4b9a9e8f094899ebdcab5ab (diff)
downloadroundcubemail-plugins-kolab-0ddd3fad15c5dc42a102218524ecffbceb9d2587.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 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;
}