Fix index.php not redirecting to app.php when already logged in

master
Skylar Ittner 5 years ago
parent ba1369d842
commit 016c71d30d

@ -10,6 +10,7 @@ require_once __DIR__ . "/required.php";
// if we're logged in, we don't need to be here. // if we're logged in, we don't need to be here.
if (!empty($_SESSION['loggedin']) && $_SESSION['loggedin'] === true && !isset($_GET['permissionerror'])) { if (!empty($_SESSION['loggedin']) && $_SESSION['loggedin'] === true && !isset($_GET['permissionerror'])) {
header('Location: app.php'); header('Location: app.php');
die();
} }
if (!empty($_GET['logout'])) { if (!empty($_GET['logout'])) {

Loading…
Cancel
Save