diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:02:27 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-29 16:02:27 +0100 |
commit | 8ca71f66cd37bac2456ac2b2faec3572c103b574 (patch) | |
tree | 2c9dc7dddb3ce5afc3af017455ef2d93a6b73eef /includes | |
parent | 19e3cc3434fb6d14461a8ca9bcbd277cbe31029a (diff) |
fixed leaving done shifts by angels bug
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/user_myshifts.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php index bfb234ff..8f6e4d56 100644 --- a/includes/pages/user_myshifts.php +++ b/includes/pages/user_myshifts.php @@ -103,7 +103,7 @@ function user_myshifts() { $html .= '<td>'; if ($id == $user['UID']) $html .= img_button(page_link_to('user_myshifts') . '&edit=' . $shift['id'], 'pencil', 'edit'); - if (($shift['start'] - time() > $LETZTES_AUSTRAGEN * 3600) || in_array('user_shifts_admin', $privileges)) + if (($shift['start'] > time() + $LETZTES_AUSTRAGEN * 3600) || in_array('user_shifts_admin', $privileges)) $html .= img_button(page_link_to('user_myshifts') . (($id != $user['UID'])? '&id=' . $id : '') . '&cancel=' . $shift['id'], 'cross', 'sign_off'); $html .= '</td>'; $html .= '</tr>'; |