From 51bc31da20c402b820d8af41ca7d4bfdb7caaed2 Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Sun, 22 Jun 2014 19:08:55 +0530 Subject: [PATCH] [ticket/12759] Little code cleanup PHPBB3-12759 --- phpBB/phpbb/profilefields/lang_helper.php | 6 +----- 1 file changed, 1 insertion(+), 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 {