1
0
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:
Marc Alexander
2022-09-08 22:11:48 +02:00
parent 7c02b58114
commit f84e03f646
4 changed files with 138 additions and 1 deletions

View File

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