Avoid comparison errors if recurrence is set to '' (used to unset recurrence rules)
This commit is contained in:
parent
db637619c3
commit
026d62d235
1 changed files with 1 additions and 1 deletions
|
@ -661,7 +661,7 @@ abstract class kolab_format_xcal extends kolab_format
|
||||||
$a = $a->format('Y-m-d');
|
$a = $a->format('Y-m-d');
|
||||||
$b = $b->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($a['EXCEPTIONS']);
|
||||||
unset($b['EXCEPTIONS']);
|
unset($b['EXCEPTIONS']);
|
||||||
$a = array_filter($a);
|
$a = array_filter($a);
|
||||||
|
|
Loading…
Add table
Reference in a new issue