Fix fatal error when using old cookie format
This commit is contained in:
parent
c244cc1a65
commit
285a9a79be
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ setcookie(
|
|||
$session['httponly']
|
||||
);
|
||||
|
||||
if (!isset($_SESSION['user'])) {
|
||||
if (!isset($_SESSION['user']) || is_array($_SESSION['user'])) {
|
||||
$_SESSION['user'] = new User();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue