Fix fatal error when using old cookie format

This commit is contained in:
grandeljay 2022-09-03 14:03:03 +02:00
parent c244cc1a65
commit 285a9a79be

View file

@ -58,7 +58,7 @@ setcookie(
$session['httponly']
);
if (!isset($_SESSION['user'])) {
if (!isset($_SESSION['user']) || is_array($_SESSION['user'])) {
$_SESSION['user'] = new User();
}