Commit bda84648 authored by drumm's avatar drumm

#24023 by vhmauery. Properly handle object option flattening.

parent def059a2
......@@ -843,7 +843,10 @@ function form_options_flatten($array, $reset = TRUE) {
}
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);
}
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