mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/17032] Prevent endlessly cycling to load user
PHPBB3-17032
This commit is contained in:
@@ -141,7 +141,7 @@ class user_loader
|
||||
{
|
||||
$this->load_users(array($user_id));
|
||||
|
||||
return $this->get_user($user_id);
|
||||
return $user_id != ANONYMOUS ? $this->get_user($user_id) : $this->users[$user_id] ?? false;
|
||||
}
|
||||
|
||||
return $this->get_user(ANONYMOUS);
|
||||
|
Reference in New Issue
Block a user