Avoid warnings when event['recurrence'] is a string

This commit is contained in:
Thomas Bruederli 2013-09-11 10:00:48 +02:00
parent 94f3198ad1
commit f08169e523

View file

@ -1369,7 +1369,7 @@ class calendar extends rcube_plugin
return;
}
if ($event['recurrence']['UNTIL'])
if (is_array($event['recurrence']) && !empty($event['recurrence']['UNTIL']))
$event['recurrence']['UNTIL'] = new DateTime($event['recurrence']['UNTIL'], $this->timezone);
$attachments = array();