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

This commit is contained in:
Aleksander Machniak 2012-10-15 12:36:23 +02:00
parent 8cfdea45db
commit 2b3d7f9926

View file

@ -149,6 +149,7 @@ class calendar_ical
// set defaults // set defaults
'free_busy' => 'busy', 'free_busy' => 'busy',
'priority' => 0, 'priority' => 0,
'attendees' => array(),
); );
// check for all-day dates // check for all-day dates
@ -299,7 +300,7 @@ class calendar_ical
// make sure the event has an UID // make sure the event has an UID
if (!$event['uid']) if (!$event['uid'])
$event['uid'] = $this->cal->$this->generate_uid(); $event['uid'] = $this->cal->generate_uid();
return $event; return $event;
} }