mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 19:08:53 +00:00
[ticket/13867] Force data type in profile fields manager
PHPBB3-13867
This commit is contained in:
parent
d26e0423f7
commit
9080a0e778
1 changed files with 3 additions and 1 deletions
|
@ -364,9 +364,11 @@ class manager
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$user_ids = (array) $user_ids;
|
||||||
|
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT *
|
||||||
FROM ' . $this->fields_data_table . '
|
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);
|
$result = $this->db->sql_query($sql);
|
||||||
$rowset = $this->db->sql_fetchrowset($result);
|
$rowset = $this->db->sql_fetchrowset($result);
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
Loading…
Add table
Reference in a new issue