aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2014-09-30 21:04:25 +0200
committerAndreas Fischer <bantu@phpbb.com>2014-09-30 21:04:25 +0200
commit8fb9f19aaef087040ffa779add028bacb497c0d1 (patch)
treeef9358e70d42d91f4606b6023772e45a35185d66 /phpBB/phpbb
parenta0db23bd0e6e6bfa8bf5c2afc49ecd8a290b0d38 (diff)
parentf64a937a57d108cf7cf6343e8d439a5d035c4e53 (diff)
downloadforums-8fb9f19aaef087040ffa779add028bacb497c0d1.tar
forums-8fb9f19aaef087040ffa779add028bacb497c0d1.tar.gz
forums-8fb9f19aaef087040ffa779add028bacb497c0d1.tar.bz2
forums-8fb9f19aaef087040ffa779add028bacb497c0d1.tar.xz
forums-8fb9f19aaef087040ffa779add028bacb497c0d1.zip
Merge pull request #3008 from nickvergessen/ticket/13111
[ticket/13111] Dropdown options are already an array in the field data * nickvergessen/ticket/13111: [ticket/13111] Dropdown options are already an array in the field data
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/profilefields/type/type_base.php2
1 files changed, 1 insertions, 1 deletions
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;