From: Raphaƫl Gertz Date: Sun, 13 Dec 2020 20:52:01 +0000 (+0100) Subject: Check on slot id unnecessary joining and title fetching X-Git-Tag: 0.1.7~52 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/0da29faba4a5ee17bf55cff7322ae9821ad9edcf?hp=a6bb3a4a92caa08baff89f405f06fb84afbc1c85 Check on slot id unnecessary joining and title fetching --- 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')); }