From b3b94cf12698937a65988e3d76f2e80ec289bd05 Mon Sep 17 00:00:00 2001 From: Roland Schneider Date: Wed, 29 Sep 2021 09:12:11 +0200 Subject: [PATCH] bug fixing --- common/modules/event/manager/EventManager.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/modules/event/manager/EventManager.php b/common/modules/event/manager/EventManager.php index 7e40a81..38ed3b6 100644 --- a/common/modules/event/manager/EventManager.php +++ b/common/modules/event/manager/EventManager.php @@ -75,11 +75,13 @@ class EventManager if ( $activeOrDisplayInterval == "active"){ $dateTimeFrom = $interval->firstActiveDate; - $dateTimeTo = (clone $interval->lastActiveDate)->modify('+1 day'); + $to = clone $interval->lastActiveDate; + $dateTimeTo = $to->modify('+1 day'); }else{ // active $dateTimeFrom = $interval->firstDisplayDate; - $dateTimeTo = (clone $interval->lastDisplayDate)->modify('+1 day'); + $to = clone $interval->lastDisplayDate; + $dateTimeTo = $to->modify('+1 day'); } // get events between active dates