From f64a937a57d108cf7cf6343e8d439a5d035c4e53 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 30 Sep 2014 12:27:14 +0200 Subject: [PATCH] [ticket/13111] Dropdown options are already an array in the field data PHPBB3-13111 --- phpBB/phpbb/profilefields/type/type_base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/profilefields/type/type_base.php b/phpBB/phpbb/profilefields/type/type_base.php index c770a0d93c..52f5d15511 100644 --- a/phpBB/phpbb/profilefields/type/type_base.php +++ b/phpBB/phpbb/profilefields/type/type_base.php @@ -133,7 +133,7 @@ abstract class type_base implements type_interface { foreach ($field_data[$key] as $lang_id => $options) { - $field_data[$key][$lang_id] = explode("\n", $options); + $field_data[$key][$lang_id] = is_array($options) ? $options : explode("\n", $options); } return $current_value;