Avoid comparison errors if recurrence is set to '' (used to unset recurrence rules)

This commit is contained in:
Thomas Bruederli 2015-02-19 15:58:32 +01:00
parent db637619c3
commit 026d62d235

View file

@ -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);