Fix iCal export of incomplete events again .-(

This commit is contained in:
Jörg Lehrke 2010-04-23 11:03:32 +00:00
parent b470f52e99
commit fe5d9f305b

View File

@ -244,9 +244,8 @@ class calendar_ical extends calendar_boupdate
$recurrence = $this->date2usertime($recur_date);
$tzid = null;
if (is_array($event) && empty($event['tzid'])) $event = $event['id'];
if (!($event = $this->read($event, $recurrence, false, 'server')))
if ((!is_array($event) || empty($event['tzid']) && ($event = $event['id'])) &&
!($event = $this->read($event, $recurrence, false, 'server')))
{
if ($this->read($event, $recurrence, true, 'server'))
{