Commit bda84648 authored by drumm's avatar drumm
Browse files

#24023 by vhmauery. Properly handle object option flattening.

parent def059a2
...@@ -843,7 +843,10 @@ function form_options_flatten($array, $reset = TRUE) { ...@@ -843,7 +843,10 @@ function form_options_flatten($array, $reset = TRUE) {
} }
foreach ($array as $key => $value) { foreach ($array as $key => $value) {
if (is_array($value)) { if (is_object($value)) {
form_options_flatten($value->option, FALSE);
}
else if (is_array($value)) {
form_options_flatten($value, FALSE); form_options_flatten($value, FALSE);
} }
else { else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment