Fix locale not updating

This commit is contained in:
grandeljay 2022-11-29 11:37:18 +01:00
parent 837ee3fb9f
commit 6a9e583725

View file

@ -56,9 +56,7 @@ session_start(
) )
); );
if (!isset($_SESSION['user'])) { $_SESSION['user'] = new User();
$_SESSION['user'] = new User();
}
/** /**
* Database * Database
@ -101,8 +99,6 @@ if (isset($_COOKIE[COOKIE_PERSISTENT]) && $database) {
->fetchAll(); ->fetchAll();
if (false !== $sessions) { if (false !== $sessions) {
$_SESSION['user'] = new User();
foreach ($sessions as $session) { foreach ($sessions as $session) {
/** Column sessions.expires was added in v0.7.1. */ /** Column sessions.expires was added in v0.7.1. */
$expires = strtotime($session['expires'] ?? date('Y-m-d H:i:s', time() + 1)); $expires = strtotime($session['expires'] ?? date('Y-m-d H:i:s', time() + 1));