mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-22 17:41:24 +02:00
[ticket/17375] User last active should be updated to current time
PHPBB-17375
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user