From 026d62d2351c58b5e28777ccc8767415490b4985 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 19 Feb 2015 15:58:32 +0100 Subject: [PATCH] Avoid comparison errors if recurrence is set to '' (used to unset recurrence rules) --- plugins/libkolab/lib/kolab_format_xcal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libkolab/lib/kolab_format_xcal.php b/plugins/libkolab/lib/kolab_format_xcal.php index e6507d6d..4d3a7583 100644 --- a/plugins/libkolab/lib/kolab_format_xcal.php +++ b/plugins/libkolab/lib/kolab_format_xcal.php @@ -661,7 +661,7 @@ abstract class kolab_format_xcal extends kolab_format $a = $a->format('Y-m-d'); $b = $b->format('Y-m-d'); } - if ($prop == 'recurrence') { + if ($prop == 'recurrence' && is_array($a) && is_array($b)) { unset($a['EXCEPTIONS']); unset($b['EXCEPTIONS']); $a = array_filter($a);