diff options
-rw-r--r-- | phpBB/phpbb/profilefields/lang_helper.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/phpBB/phpbb/profilefields/lang_helper.php b/phpBB/phpbb/profilefields/lang_helper.php index b950ace872..2ea3066f94 100644 --- a/phpBB/phpbb/profilefields/lang_helper.php +++ b/phpBB/phpbb/profilefields/lang_helper.php @@ -74,11 +74,7 @@ class lang_helper { if (is_array($field_id)) { - foreach ($field_id as $k => $id) - { - $field_id[$k] = (int) $id; - } - $field_id = array_unique($field_id); + $field_id = array_map('intval', array_unique($field_id)); } else { |