[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[$k] = (int) $id;
} }
$field_id = array_unique($field_id);
} }
else else
{ {