mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ class phpbb_user_loader
|
||||||
{
|
{
|
||||||
$user_ids[] = ANONYMOUS;
|
$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
|
// Do not load users we already have in $this->users
|
||||||
$user_ids = array_diff($user_ids, array_keys($this->users));
|
$user_ids = array_diff($user_ids, array_keys($this->users));
|
||||||
|
|
Loading…
Add table
Reference in a new issue