Add isset check on check_login to prevent undefined errors

This commit is contained in:
Marcus Hill
2023-01-21 13:48:53 +00:00
parent 2c1f760ce0
commit fb5a27843c

View File

@@ -16,7 +16,7 @@ if(!isset($config_enable_setup) || $config_enable_setup == 1){
exit; exit;
} }
if(!$_SESSION['logged']){ if(!isset($_SESSION['logged']) || !$_SESSION['logged']){
header("Location: login.php"); header("Location: login.php");
die; die;
} }