mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/17375] User last active should be updated to current time
PHPBB-17375
This commit is contained in:
parent
8497104bdb
commit
18c00a902f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue