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(); }