Rapsys Git
/
airbundle
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6bb3a4
)
Check on slot id unnecessary joining and title fetching
author
Raphaël Gertz
<git@rapsys.eu>
Sun, 13 Dec 2020 20:52:01 +0000
(21:52 +0100)
committer
Raphaël Gertz
<git@rapsys.eu>
Sun, 13 Dec 2020 20:52:01 +0000
(21:52 +0100)
Entity/Session.php
patch
|
blob
|
history
diff --git
a/Entity/Session.php
b/Entity/Session.php
index 20d50ddc8c2bbfa9fa9dfd6f050025aab08ed30c..e7461711fdd30ff8ae3143ccb8524d5f9c1a7b5b 100644
(file)
--- 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'));
}