aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShitiz Garg <mail@dragooon.net>2014-06-22 19:04:28 +0530
committerShitiz Garg <mail@dragooon.net>2014-06-27 17:48:36 +0530
commit6251d68be431704086477d143cddadcc1fcebb33 (patch)
tree3804339857731a2fbd9e32d783595dbcd56dc466
parentaebe03f88cb3c2aee6e0b859be82d5235efdacea (diff)
downloadforums-6251d68be431704086477d143cddadcc1fcebb33.tar
forums-6251d68be431704086477d143cddadcc1fcebb33.tar.gz
forums-6251d68be431704086477d143cddadcc1fcebb33.tar.bz2
forums-6251d68be431704086477d143cddadcc1fcebb33.tar.xz
forums-6251d68be431704086477d143cddadcc1fcebb33.zip
[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
-rw-r--r--phpBB/phpbb/profilefields/lang_helper.php1
1 files changed, 1 insertions, 0 deletions
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
{