From 96783da0139f4640458f5c5ee5f2cf3bc7a53cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 5 Jul 2019 16:12:27 +0200 Subject: [PATCH] Bugfix to get old Sabredav working with php7 --- include/sabredav/lib/Sabre/CalDAV/CalendarQueryValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/sabredav/lib/Sabre/CalDAV/CalendarQueryValidator.php b/include/sabredav/lib/Sabre/CalDAV/CalendarQueryValidator.php index 494aed1a7..4b05e8ca9 100644 --- a/include/sabredav/lib/Sabre/CalDAV/CalendarQueryValidator.php +++ b/include/sabredav/lib/Sabre/CalDAV/CalendarQueryValidator.php @@ -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; }