Fix install step 2 not appearing

This commit is contained in:
Jay Trees 2022-01-14 15:59:56 +01:00
parent 56c61bc219
commit cbf1287416

View file

@ -25,7 +25,11 @@ class Page
/** /**
* Session * Session
*/ */
if (!isset($_SESSION['user']) && isset($_GET['page']) && 'login' !== $_GET['page']) { $disableRedirect = array(
'login',
'install'
);
if (!isset($_SESSION['user']) && isset($_GET['page']) && !in_array($_GET['page'], $disableRedirect)) {
header('Location: /?page=login'); header('Location: /?page=login');
die(); die();
} }