From 781f830678dcc5601c47a01acab7763c9bb8363d Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 22 Jan 2017 01:16:00 +0100 Subject: Fixes and improvements --- includes/controller/shifts_controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/controller/shifts_controller.php') 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])); } -- cgit v1.2.3-54-g00ecf