]> Raphaël G. Git Repositories - airbundle/commitdiff
Check on slot id unnecessary joining and title fetching
authorRaphaël Gertz <git@rapsys.eu>
Sun, 13 Dec 2020 20:52:01 +0000 (21:52 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 13 Dec 2020 20:52:01 +0000 (21:52 +0100)
Entity/Session.php

index 20d50ddc8c2bbfa9fa9dfd6f050025aab08ed30c..e7461711fdd30ff8ae3143ccb8524d5f9c1a7b5b 100644 (file)
@@ -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'));
                }