aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/session.php
diff options
context:
space:
mode:
authorkasimi <mail@kasimi.net>2018-06-06 10:40:29 +0200
committerkasimi <mail@kasimi.net>2018-06-06 10:40:29 +0200
commit8283f2393af3742f81daeb1c92d4ea097e8863e3 (patch)
tree8c239f25b3a0c636911ac1777c8ba2e9540335e3 /phpBB/phpbb/session.php
parent85eceeccbee4cac37b73c6b40bac22ad6edb5bbd (diff)
downloadforums-8283f2393af3742f81daeb1c92d4ea097e8863e3.tar
forums-8283f2393af3742f81daeb1c92d4ea097e8863e3.tar.gz
forums-8283f2393af3742f81daeb1c92d4ea097e8863e3.tar.bz2
forums-8283f2393af3742f81daeb1c92d4ea097e8863e3.tar.xz
forums-8283f2393af3742f81daeb1c92d4ea097e8863e3.zip
[ticket/15583] Update session time in AJAX request only once a minute
PHPBB3-15583
Diffstat (limited to 'phpBB/phpbb/session.php')
-rw-r--r--phpBB/phpbb/session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php
index 654d377d31..80934dc411 100644
--- a/phpBB/phpbb/session.php
+++ b/phpBB/phpbb/session.php
@@ -1618,7 +1618,7 @@ class session
$page_changed = $this->update_session_page && $this->data['session_page'] != $this->page['page'] && !$request->is_ajax();
// Only update session DB a minute or so after last update or if page changes
- if ($this->time_now - ((isset($this->data['session_time'])) ? $this->data['session_time'] : 0) > 60 || $page_changed)
+ if ($this->time_now - (isset($this->data['session_time']) ? $this->data['session_time'] : 0) > 60 || $page_changed)
{
$sql_ary = array('session_time' => $this->time_now);