diff --git a/src/apicore/structure/response.php b/src/apicore/structure/response.php index 085370b..989f21a 100644 --- a/src/apicore/structure/response.php +++ b/src/apicore/structure/response.php @@ -82,7 +82,7 @@ public static function addError($code, $message){ public function xml2array ( $xmlObject, $out = array () ) { foreach ( (array) $xmlObject as $index => $node ) - $out[$index] = ( is_object ( $node ) || is_array ( $node ) ) ? xml2array ( $node ) : $node; + $out[$index] = ( is_object ( $node ) || is_array ( $node ) ) ? $this->xml2array ( $node ) : $node; return $out; }