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.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 24b9251a..f8cf71cd 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -96,7 +96,7 @@ function load_rooms()
);
if (empty($rooms)) {
error(_('The administration has not configured any rooms yet.'));
- redirect('?');
+ redirect(page_link_to('/'));
}
return $rooms;
}
@@ -115,7 +115,7 @@ function load_days()
if (empty($days)) {
error(_('The administration has not configured any shifts yet.'));
- redirect('?');
+ redirect(page_link_to('/'));
}
return $days;
}
@@ -129,7 +129,7 @@ function load_types()
if (!count(DB::select('SELECT `id`, `name` FROM `AngelTypes` WHERE `restricted` = 0'))) {
error(_('The administration has not configured any angeltypes yet - or you are not subscribed to any angeltype.'));
- redirect('?');
+ redirect(page_link_to('/'));
}
$types = DB::select('
SELECT