mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 10:05:19 +02:00
[ticket/17091] Ensure session length is int
PHPBB3-17091
This commit is contained in:
parent
e091adcc9c
commit
8ebb64a92a
@ -420,7 +420,7 @@ class session
|
|||||||
// Else check the autologin length... and also removing those having autologin enabled but no longer allowed board-wide.
|
// Else check the autologin length... and also removing those having autologin enabled but no longer allowed board-wide.
|
||||||
if (!$this->data['session_autologin'])
|
if (!$this->data['session_autologin'])
|
||||||
{
|
{
|
||||||
if ($this->data['session_time'] < $this->time_now - ($config['session_length'] + 60))
|
if ($this->data['session_time'] < $this->time_now - ((int) $config['session_length'] + 60))
|
||||||
{
|
{
|
||||||
$session_expired = true;
|
$session_expired = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user