Fix fatal error on event without an UID and PHP warning (Bug #1108)
This commit is contained in:
parent
8cfdea45db
commit
2b3d7f9926
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue