summaryrefslogtreecommitdiff
path: root/plugins/libkolab
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2015-02-19 14:58:32 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2015-02-19 14:58:32 (GMT)
commit026d62d2351c58b5e28777ccc8767415490b4985 (patch)
treeae49dfd91394ed8890c13c7c4fdf22cd79bb3981 /plugins/libkolab
parentdb637619c3cfa5fc73e55c7f60adba9c2c635e0a (diff)
downloadroundcubemail-plugins-kolab-026d62d2351c58b5e28777ccc8767415490b4985.tar.gz
Avoid comparison errors if recurrence is set to '' (used to unset recurrence rules)
Diffstat (limited to 'plugins/libkolab')
-rw-r--r--plugins/libkolab/lib/kolab_format_xcal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/libkolab/lib/kolab_format_xcal.php b/plugins/libkolab/lib/kolab_format_xcal.php
index e6507d6..4d3a758 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);