summaryrefslogtreecommitdiff
path: root/includes/controller/shifts_controller.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-01-22 01:16:00 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-22 01:16:00 +0100
commit781f830678dcc5601c47a01acab7763c9bb8363d (patch)
tree29d55a68fbc1e1a6703d92e59ddf580be73edeef /includes/controller/shifts_controller.php
parent3de0cc840f45e53a9135f4faa44a375a7b0148ef (diff)
Fixes and improvements
Diffstat (limited to 'includes/controller/shifts_controller.php')
-rw-r--r--includes/controller/shifts_controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php
index a1801de6..c8b6932a 100644
--- a/includes/controller/shifts_controller.php
+++ b/includes/controller/shifts_controller.php
@@ -316,7 +316,7 @@ function shift_next_controller()
$upcoming_shifts = ShiftEntries_upcoming_for_user($user);
- if (empty($upcoming_shifts)) {
+ if (!empty($upcoming_shifts)) {
redirect(shift_link($upcoming_shifts[0]));
}