mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-19 07:16:36 +02:00
[ticket/13867] Force data type in profile fields manager
PHPBB3-13867
This commit is contained in:
parent
d26e0423f7
commit
9080a0e778
@ -364,9 +364,11 @@ class manager
|
||||
return [];
|
||||
}
|
||||
|
||||
$user_ids = (array) $user_ids;
|
||||
|
||||
$sql = 'SELECT *
|
||||
FROM ' . $this->fields_data_table . '
|
||||
WHERE ' . $this->db->sql_in_set('user_id', array_map('intval', (array) $user_ids));
|
||||
WHERE ' . $this->db->sql_in_set('user_id', array_map('intval', $user_ids));
|
||||
$result = $this->db->sql_query($sql);
|
||||
$rowset = $this->db->sql_fetchrowset($result);
|
||||
$this->db->sql_freeresult($result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user