Remove backwards compatibility
This commit is contained in:
parent
348b72d364
commit
da791d3469
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue