1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16470] Adjust method result type

PHPBB3-16470
PHPBB3-14173
This commit is contained in:
rxu
2023-06-15 23:21:34 +07:00
parent aefdd86020
commit a14e8f8ce5

View File

@@ -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();
}
}