summaryrefslogtreecommitdiff
path: root/includes/model/Shifts_model.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-14 17:40:24 +0100
committermsquare <msquare@notrademark.de>2016-11-14 17:40:24 +0100
commit0ab9f4f9886ca61fe0711ba1ee551394ceda877a (patch)
treebc49135f57cbc1307e0e7594e2ec957e021a342d /includes/model/Shifts_model.php
parent1a3b4e2a334c57cc403be1d8e21fd8e162d9df5c (diff)
fix shift ended recognition and displayed time range end
Diffstat (limited to 'includes/model/Shifts_model.php')
-rw-r--r--includes/model/Shifts_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php
index 306d3e13..3d3fa356 100644
--- a/includes/model/Shifts_model.php
+++ b/includes/model/Shifts_model.php
@@ -133,7 +133,7 @@ function Shift_signup_allowed($user, $shift, $angeltype, $user_angeltype = null,
return new ShiftSignupState(ShiftSignupState::FREE, $free_entries);
}
- if (time() < $shift['start']) {
+ if (time() > $shift['start']) {
// you can only join if the shift is in future
return new ShiftSignupState(ShiftSignupState::SHIFT_ENDED, $free_entries);
}