summaryrefslogtreecommitdiff
path: root/includes/controller/shifts_controller.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-11-19 10:45:08 +0100
committermsquare <msquare@notrademark.de>2017-11-19 10:45:08 +0100
commit50f24271eb0c3aea6dbb91ab28ebd5682ac59cae (patch)
treeb7e4d0cc4858ccfc1387ad2433320806bd397a12 /includes/controller/shifts_controller.php
parent80606cdd8b4cca2c3b589644cf7f02db34689d70 (diff)
fix all redirects to home (because of new urls redirect to ? wont work anymore)
Diffstat (limited to 'includes/controller/shifts_controller.php')
-rw-r--r--includes/controller/shifts_controller.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/controller/shifts_controller.php b/includes/controller/shifts_controller.php
index 70011821..739ba009 100644
--- a/includes/controller/shifts_controller.php
+++ b/includes/controller/shifts_controller.php
@@ -249,7 +249,7 @@ function shift_controller()
$request = request();
if (!in_array('user_shifts', $privileges)) {
- redirect(page_link_to('?'));
+ redirect(page_link_to('/'));
}
if (!$request->has('shift_id')) {
@@ -311,7 +311,7 @@ function shifts_controller()
case 'next':
return shift_next_controller();
default:
- redirect(page_link_to('?'));
+ redirect(page_link_to('/'));
}
return false;
@@ -325,7 +325,7 @@ function shift_next_controller()
global $user, $privileges;
if (!in_array('user_shifts', $privileges)) {
- redirect(page_link_to('?'));
+ redirect(page_link_to('/'));
}
$upcoming_shifts = ShiftEntries_upcoming_for_user($user);