From d49f93d8630ac3ac5b8c1e2eb36df783699b8fac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Sun, 13 Dec 2020 21:52:01 +0100 Subject: [PATCH] Check on slot id unnecessary joining and title fetching --- Entity/Session.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Entity/Session.php b/Entity/Session.php index 20d50dd..e746171 100644 --- a/Entity/Session.php +++ b/Entity/Session.php @@ -191,7 +191,8 @@ class Session { $this->start = clone $this->date; //Check if after slot - if ($this->slot->getTitle() == 'After') { + //XXX: id=4 <=> title=After + if ($this->slot->getId() == 4) { //Add one day $this->start->add(new \DateInterval('P1D')); } -- 2.41.0