mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16470] Adjust method result type
PHPBB3-16470 PHPBB3-14173
This commit is contained in:
parent
aefdd86020
commit
a14e8f8ce5
1 changed files with 3 additions and 5 deletions
|
@ -1806,7 +1806,7 @@ class session
|
|||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function update_user_lastvisit()
|
||||
public function update_user_lastvisit(): bool
|
||||
{
|
||||
global $db;
|
||||
|
||||
|
@ -1818,10 +1818,8 @@ class session
|
|||
$sql = 'UPDATE ' . USERS_TABLE . '
|
||||
SET user_lastvisit = ' . (int) $this->data['session_time'] . '
|
||||
WHERE user_id = ' . (int) $this->data['user_id'];
|
||||
$db->sql_query($sql);
|
||||
|
||||
if ($db->sql_query($sql))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return (bool) $db->sql_affectedrows();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue