Refactor
This commit is contained in:
parent
e416a916be
commit
975efd3f25
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ class Page
|
|||
*/
|
||||
if (!isset($_SESSION['user']) && isset($_GET['page']) && 'login' !== $_GET['page']) {
|
||||
header('Location: /?page=login');
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue