From 285a9a79be536d4d34ff6b6571448f67b8d87856 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sat, 3 Sep 2022 14:03:03 +0200 Subject: [PATCH] Fix fatal error when using old cookie format --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 5ff5b109..c8e4e948 100644 --- a/index.php +++ b/index.php @@ -58,7 +58,7 @@ setcookie( $session['httponly'] ); -if (!isset($_SESSION['user'])) { +if (!isset($_SESSION['user']) || is_array($_SESSION['user'])) { $_SESSION['user'] = new User(); }