From 26dafba606e4831ac2fc89b4d002c28bd527b2ab Mon Sep 17 00:00:00 2001 From: Jan-Philipp Litza Date: Wed, 26 Dec 2012 16:09:23 +0100 Subject: hotfix for time lock before unsigning from shifts --- includes/pages/user_myshifts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index 390b3b01..2d1981fa 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -56,7 +56,7 @@ function user_myshifts() { $shift = sql_select("SELECT * FROM `ShiftEntry` WHERE `id`=" . sql_escape($id) . " AND `UID`=" . sql_escape($shifts_user['UID']) . " LIMIT 1"); if (count($shift) > 0) { $shift = $shift[0]; - if (($shift['start'] - time() < $LETZTES_AUSTRAGEN * 60) || in_array('user_shifts_admin', $privileges)) { + if (($shift['start'] - time() < $LETZTES_AUSTRAGEN * 3600) || in_array('user_shifts_admin', $privileges)) { sql_query("DELETE FROM `ShiftEntry` WHERE `id`=" . sql_escape($id) . " LIMIT 1"); $msg .= success(Get_Text("pub_myshifts_signed_off"), true); } else @@ -79,7 +79,7 @@ function user_myshifts() { $html .= '' . $shift['Comment'] . ''; $html .= ''; $html .= '' . Get_Text('edit') . ''; - if ($shift['start'] - time() > $LETZTES_AUSTRAGEN * 60) + if ($shift['start'] - time() > $LETZTES_AUSTRAGEN * 3600) $html .= ' | ' . Get_Text('sign_off') . ''; $html .= ''; $html .= ''; -- cgit v1.2.3-54-g00ecf