mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11440] Cast values of the $user_ids array to integer before sql_in_set.
PHPBB3-11440
This commit is contained in:
@@ -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));
|
||||||
|
Reference in New Issue
Block a user