Fix install step 2 not appearing
This commit is contained in:
parent
56c61bc219
commit
cbf1287416
1 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue