1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-03 23:37:39 +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 * @return bool
*/ */
public function update_user_lastvisit() public function update_user_lastvisit(): bool
{ {
global $db; global $db;
@@ -1818,10 +1818,8 @@ class session
$sql = 'UPDATE ' . USERS_TABLE . ' $sql = 'UPDATE ' . USERS_TABLE . '
SET user_lastvisit = ' . (int) $this->data['session_time'] . ' SET user_lastvisit = ' . (int) $this->data['session_time'] . '
WHERE user_id = ' . (int) $this->data['user_id']; WHERE user_id = ' . (int) $this->data['user_id'];
$db->sql_query($sql);
if ($db->sql_query($sql)) return (bool) $db->sql_affectedrows();
{
return true;
}
} }
} }