From 0ab9f4f9886ca61fe0711ba1ee551394ceda877a Mon Sep 17 00:00:00 2001 From: msquare Date: Mon, 14 Nov 2016 17:40:24 +0100 Subject: fix shift ended recognition and displayed time range end --- includes/model/Shifts_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/model/Shifts_model.php') 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); } -- cgit v1.2.3-70-g09d2