From 6251d68be431704086477d143cddadcc1fcebb33 Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Sun, 22 Jun 2014 19:04:28 +0530 Subject: [PATCH] [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 --- phpBB/phpbb/profilefields/lang_helper.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/phpbb/profilefields/lang_helper.php b/phpBB/phpbb/profilefields/lang_helper.php index 9e4991e94a..b950ace872 100644 --- a/phpBB/phpbb/profilefields/lang_helper.php +++ b/phpBB/phpbb/profilefields/lang_helper.php @@ -78,6 +78,7 @@ class lang_helper { $field_id[$k] = (int) $id; } + $field_id = array_unique($field_id); } else {