1
0
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:
mrgoldy 2020-03-24 00:28:00 +01:00
parent d26e0423f7
commit 9080a0e778

View File

@ -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);