summaryrefslogtreecommitdiff
path: root/includes/init.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/init.inc')
-rw-r--r--includes/init.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/init.inc b/includes/init.inc
index ba523aa..8773ba4 100644
--- a/includes/init.inc
+++ b/includes/init.inc
@@ -22,6 +22,10 @@ if (in_array($toplevel, array_keys($pages))) {
$readOnly = true;
}
+ if (!isset($emergencyHeader)) {
+ $emergencyHeader = false;
+ }
+
if ($pages[$toplevel]["limited"]) {
if ((!$isLoggedIn && !$isLowerLoggedIn) || ($readOnly && !$emergencyHeader)) header("Location: /-/login/?return=/-/$toplevel") and die();
} else {
@@ -30,4 +34,4 @@ if (in_array($toplevel, array_keys($pages))) {
}
} else {
$title = $toplevel;
-}
+} \ No newline at end of file