mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge pull request #1296 from bantu/ticket/11440
[ticket/11440] Cast values of the $user_ids array to integer before sql_in_set.
This commit is contained in:
commit
fd7db5cc1f
1 changed files with 2 additions and 2 deletions
|
@ -70,8 +70,8 @@ class phpbb_user_loader
|
|||
{
|
||||
$user_ids[] = ANONYMOUS;
|
||||
|
||||
// Load the users
|
||||
$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…
Add table
Reference in a new issue