Remove backwards compatibility

This commit is contained in:
grandeljay 2022-11-08 12:38:43 +01:00
parent 348b72d364
commit da791d3469

View file

@ -56,8 +56,7 @@ session_start(
) )
); );
/** Backwards compatibility */ if (!isset($_SESSION['user'])) {
if (!isset($_SESSION['user']) || is_array($_SESSION['user'])) {
$_SESSION['user'] = new User(); $_SESSION['user'] = new User();
} }