Avoid Illegal string offset warnings
This commit is contained in:
parent
85014df70b
commit
9a9cf8fe89
1 changed files with 1 additions and 1 deletions
|
@ -1106,7 +1106,7 @@ class libvcalendar implements Iterator
|
||||||
}
|
}
|
||||||
|
|
||||||
// append recurrence exceptions
|
// append recurrence exceptions
|
||||||
if ($event['recurrence']['EXCEPTIONS']) {
|
if (is_array($event['recurrence']) && $event['recurrence']['EXCEPTIONS']) {
|
||||||
foreach ($event['recurrence']['EXCEPTIONS'] as $ex) {
|
foreach ($event['recurrence']['EXCEPTIONS'] as $ex) {
|
||||||
$exdate = clone $event['start'];
|
$exdate = clone $event['start'];
|
||||||
$exdate->setDate($ex['start']->format('Y'), $ex['start']->format('n'), $ex['start']->format('j'));
|
$exdate->setDate($ex['start']->format('Y'), $ex['start']->format('n'), $ex['start']->format('j'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue