From 2b3d7f99261b4bc15e45f0e85305a71cde054a7e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 15 Oct 2012 12:36:23 +0200 Subject: [PATCH] Fix fatal error on event without an UID and PHP warning (Bug #1108) --- plugins/calendar/lib/calendar_ical.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/calendar/lib/calendar_ical.php b/plugins/calendar/lib/calendar_ical.php index cf5f72ca..594993e0 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; }