This commit is contained in:
grandeljay 2022-11-09 14:18:44 +01:00
parent e52fe7ec30
commit c0e23cebe0

View file

@ -104,6 +104,7 @@ if (isset($_COOKIE[COOKIE_PERSISTENT]) && $database) {
$_SESSION['user'] = new User(); $_SESSION['user'] = new User();
foreach ($sessions as $session) { foreach ($sessions as $session) {
/** 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));
if (time() < $expires) { if (time() < $expires) {