Bugfix to get old Sabredav working with php7

This commit is contained in:
Andreas Österreicher
2019-07-05 16:12:27 +02:00
parent ebea830f14
commit 96783da013
@@ -59,7 +59,7 @@ class CalendarQueryValidator {
foreach($filters as $filter) {
$isDefined = isset($parent->$filter['name']);
$isDefined = isset($parent->{$filter['name']});
if ($filter['is-not-defined']) {
@@ -75,7 +75,7 @@ class CalendarQueryValidator {
}
if ($filter['time-range']) {
foreach($parent->$filter['name'] as $subComponent) {
foreach($parent->{$filter['name']} as $subComponent) {
if ($this->validateTimeRange($subComponent, $filter['time-range']['start'], $filter['time-range']['end'])) {
continue 2;
}