Skip to content
Snippets Groups Projects
Commit 23cfbc8f authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix crash on login screen before upgrade to 1.8.2

parent 9568ff48
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ $content = Page::lookup(Page::getIdByType('banner-staff'));
$dest = $_SESSION['_staff']['auth']['dest'];
$msg = $_SESSION['_staff']['auth']['msg'];
$msg = $msg ?: $content->getName();
$msg = $msg ?: ($content ? $content->getName() : 'Authentication Required');
$dest=($dest && (!strstr($dest,'login.php') && !strstr($dest,'ajax.php')))?$dest:'index.php';
$show_reset = false;
if($_POST) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment