1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-13 04:13:29 +02:00

[ticket/12759] Make sure $field_id has unique elements

Otherwise it would cause a bunch of repetitive IDs passed to the IN clause

PHPBB3-12759
This commit is contained in:
Shitiz Garg 2014-06-22 19:04:28 +05:30
parent aebe03f88c
commit 6251d68be4

View File

@ -78,6 +78,7 @@ class lang_helper
{
$field_id[$k] = (int) $id;
}
$field_id = array_unique($field_id);
}
else
{