From 18c00a902fc9cf76c90b35d315d0f6d298099c6b Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 31 Jul 2024 21:25:33 +0200 Subject: [PATCH] [ticket/17375] User last active should be updated to current time PHPBB-17375 --- phpBB/phpbb/session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php index bb544531c1..de68cb6b66 100644 --- a/phpBB/phpbb/session.php +++ b/phpBB/phpbb/session.php @@ -819,7 +819,7 @@ class session // Update the form key $sql = 'UPDATE ' . USERS_TABLE . ' SET user_form_salt = \'' . $db->sql_escape($this->data['user_form_salt']) . '\', - user_last_active = ' . (int) $this->data['session_time'] . ' + user_last_active = ' . (int) $this->time_now . ' WHERE user_id = ' . (int) $this->data['user_id']; $db->sql_query($sql); }