[ticket/17375] User last active should be updated to current time

PHPBB-17375
This commit is contained in:
Marc Alexander 2024-07-31 21:25:33 +02:00
parent 8497104bdb
commit 18c00a902f
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -819,7 +819,7 @@ class session
// Update the form key // Update the form key
$sql = 'UPDATE ' . USERS_TABLE . ' $sql = 'UPDATE ' . USERS_TABLE . '
SET user_form_salt = \'' . $db->sql_escape($this->data['user_form_salt']) . '\', 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']; WHERE user_id = ' . (int) $this->data['user_id'];
$db->sql_query($sql); $db->sql_query($sql);
} }