mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +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:
@@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user