Refactor
This commit is contained in:
parent
e52fe7ec30
commit
c0e23cebe0
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue