summaryrefslogtreecommitdiff
path: root/includes/pages/user_shifts.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/user_shifts.php')
-rw-r--r--includes/pages/user_shifts.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 8e3c8ded..20bcca86 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -25,7 +25,7 @@ function user_shifts()
$request = request();
if (User_is_freeloader(auth()->user())) {
- redirect(page_link_to('user_myshifts'));
+ throw_redirect(page_link_to('user_myshifts'));
}
if ($request->has('edit_shift')) {
@@ -99,7 +99,7 @@ function load_rooms()
);
if (empty($rooms)) {
error(__('The administration has not configured any rooms yet.'));
- redirect(page_link_to('/'));
+ throw_redirect(page_link_to('/'));
}
return $rooms;
}
@@ -120,7 +120,7 @@ function load_days()
error(__('The administration has not configured any shifts yet.'));
// Do not try to redirect to the current page
if (config('home_site') != 'user_shifts') {
- redirect(page_link_to('/'));
+ throw_redirect(page_link_to('/'));
}
}
return $days;
@@ -135,7 +135,7 @@ function load_types()
if (!count(DB::select('SELECT `id`, `name` FROM `AngelTypes`'))) {
error(__('The administration has not configured any angeltypes yet - or you are not subscribed to any angeltype.'));
- redirect(page_link_to('/'));
+ throw_redirect(page_link_to('/'));
}
$types = DB::select('
SELECT