]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Session.php
Check on slot id unnecessary joining and title fetching
[airbundle] / 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'));
                }