diff --git a/omega_tools.module b/omega_tools.module index 0e10e85..3926a62 100644 --- a/omega_tools.module +++ b/omega_tools.module @@ -347,7 +347,11 @@ function omega_tools_replace_contents($file, $search, $replace) { function omega_tools_build_info_file($array, $prefix = FALSE) { $info = ''; - foreach ($array as $key => $value) { + foreach ($array as $key => $value) { + if(is_object($value)){ + $value = get_object_vars ( $value ); + } + if (is_array($value)) { $info .= omega_tools_build_info_file($value, (!$prefix ? $key : "{$prefix}[{$key}]")); } @@ -643,4 +647,4 @@ function _omega_tools_is_editable($theme) { } return FALSE; -} \ No newline at end of file +}