diff --git a/htdocs/debugbar/class/DataCollector/DolConfigCollector.php b/htdocs/debugbar/class/DataCollector/DolConfigCollector.php index c11355bf8b4..86007cbf2dd 100644 --- a/htdocs/debugbar/class/DataCollector/DolConfigCollector.php +++ b/htdocs/debugbar/class/DataCollector/DolConfigCollector.php @@ -54,8 +54,8 @@ class DolConfigCollector extends ConfigCollector $config = array( 'Dolibarr' => array( 'const' => $const['user'], - '$conf' => $this->object_to_array($conf), - '$user' => $this->object_to_array($user) + '$conf' => $this->objectToArray($conf), + '$user' => $this->objectToArray($user) ), 'PHP' => array( 'version' => PHP_VERSION, @@ -72,14 +72,14 @@ class DolConfigCollector extends ConfigCollector * * @return array Array */ - protected function object_to_array($obj) + protected function objectToArray($obj) { $_arr = is_object($obj) ? get_object_vars($obj) : $obj; foreach ($_arr as $key => $val) { - $val = (is_array($val) || is_object($val)) ? $this->object_to_array($val) : $val; + $val = (is_array($val) || is_object($val)) ? $this->objectToArray($val) : $val; $arr[$key] = $val; } return $arr; } -} \ No newline at end of file +}