1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-02 06:51:08 +02:00

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
This commit is contained in:
Andreas Fischer
2014-09-30 21:04:25 +02:00

View File

@@ -133,7 +133,7 @@ abstract class type_base implements type_interface
{ {
foreach ($field_data[$key] as $lang_id => $options) 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; return $current_value;