From 823c62be9fe9fc29449d7f574380ae5458ad843e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 10 Sep 2015 12:42:59 +0200 Subject: [PATCH] Fix compatibility with Sabre/VObject-3.4, error on RRULE with BYDAY import (#5221) --- plugins/libcalendaring/libvcalendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php index 3833d4d9..782ff898 100644 --- a/plugins/libcalendaring/libvcalendar.php +++ b/plugins/libcalendaring/libvcalendar.php @@ -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']);