Avoid warnings when event['recurrence'] is a string
This commit is contained in:
parent
94f3198ad1
commit
f08169e523
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue