Skip to content

Commit

Permalink
[ticket/16470] Adjust method result type
Browse files Browse the repository at this point in the history
PHPBB3-16470
PHPBB3-14173
  • Loading branch information
rxu committed Jun 15, 2023
1 parent aefdd86 commit a14e8f8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions phpBB/phpbb/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,7 @@ public function id() : int
*
* @return bool
*/
public function update_user_lastvisit()
public function update_user_lastvisit(): bool
{
global $db;

Expand All @@ -1818,10 +1818,8 @@ public function update_user_lastvisit()
$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();
}
}

0 comments on commit a14e8f8

Please sign in to comment.