Fix compatibility with Sabre/VObject-3.4, error on RRULE with BYDAY import (#5221)

This commit is contained in:
Aleksander Machniak 2015-09-10 12:42:59 +02:00
parent f8259ccdad
commit 823c62be9f

View file

@ -456,7 +456,7 @@ class libvcalendar implements Iterator
$params = is_array($event['recurrence']) ? $event['recurrence'] : array();
// parse recurrence rule attributes
foreach ($prop->getParts() as $k => $v) {
$params[strtoupper($k)] = $v;
$params[strtoupper($k)] = is_array($v) ? implode(',', $v) : $v;
}
if ($params['UNTIL'])
$params['UNTIL'] = date_create($params['UNTIL']);