mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16470] Adjust method result type
PHPBB3-16470 PHPBB3-14173
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user