mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 22:15:31 +01: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
@ -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…
x
Reference in New Issue
Block a user