diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-01-04 21:40:46 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-01-04 21:40:46 +0100 |
commit | c6746ab3cd02b4c8a05895c334a3f812a5a5c5b1 (patch) | |
tree | 1c3443f8325860457d7dceb0beac31db76828cce /phpBB/phpbb | |
parent | 24b02ad4d60c24642559ae8d212bd3d42a5efd0f (diff) | |
download | forums-c6746ab3cd02b4c8a05895c334a3f812a5a5c5b1.tar forums-c6746ab3cd02b4c8a05895c334a3f812a5a5c5b1.tar.gz forums-c6746ab3cd02b4c8a05895c334a3f812a5a5c5b1.tar.bz2 forums-c6746ab3cd02b4c8a05895c334a3f812a5a5c5b1.tar.xz forums-c6746ab3cd02b4c8a05895c334a3f812a5a5c5b1.zip |
[ticket/14946] Make sure to pass integers to max()
PHPBB3-14946
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php index cbe2f02851..cc200b1adc 100644 --- a/phpBB/phpbb/session.php +++ b/phpBB/phpbb/session.php @@ -838,7 +838,7 @@ class session $sql = 'SELECT COUNT(session_id) AS sessions FROM ' . SESSIONS_TABLE . ' WHERE session_user_id = ' . (int) $this->data['user_id'] . ' - AND session_time >= ' . (int) ($this->time_now - (max($config['session_length'], $config['form_token_lifetime']))); + AND session_time >= ' . (int) ($this->time_now - (max((int) $config['session_length'], (int) $config['form_token_lifetime']))); $result = $db->sql_query($sql); $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); |