mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[ticket/11440] Cast values of the $user_ids array to integer before sql_in_set.
PHPBB3-11440
This commit is contained in:
parent
b17c0aa098
commit
1694dc6e28
@ -70,7 +70,8 @@ class phpbb_user_loader
|
||||
{
|
||||
$user_ids[] = ANONYMOUS;
|
||||
|
||||
$user_ids = array_unique($user_ids);
|
||||
// Make user_ids unique and convert to integer.
|
||||
$user_ids = array_map('intval', array_unique($user_ids));
|
||||
|
||||
// Do not load users we already have in $this->users
|
||||
$user_ids = array_diff($user_ids, array_keys($this->users));
|
||||
|
Loading…
x
Reference in New Issue
Block a user