summaryrefslogtreecommitdiff
path: root/includes/pages/user_shifts.php
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2019-03-07 13:01:52 +0100
committermsquare <msquare@notrademark.de>2019-03-09 13:52:13 +0100
commitafa4506e11f96d05a727e591301f98fb50f8fad4 (patch)
treeecca4d5bc66589c599b2c71e7d504da52fda7099 /includes/pages/user_shifts.php
parentcd2f78924b41c70d1bc13fc45e0d025a56e32c48 (diff)
Support alternative home sites
Diffstat (limited to 'includes/pages/user_shifts.php')
-rw-r--r--includes/pages/user_shifts.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 942b8849..4ddc8f70 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -118,7 +118,10 @@ function load_days()
if (empty($days)) {
error(__('The administration has not configured any shifts yet.'));
- redirect(page_link_to('/'));
+ // Do not try to redirect to the current page
+ if (config('home_site') != 'user_shifts') {
+ redirect(page_link_to('/'));
+ }
}
return $days;
}