@@ -346,12 +346,12 @@ |
||
| 346 | 346 | foreach ($array as $key => $value) { |
| 347 | 347 | if (is_array($value)) { |
| 348 | 348 | if ($this->_isAssoc($value)){ //assoc |
| 349 | - $this->_arrayToXml($value, $xml->addChild($key)); |
|
| 349 | + $this->_arrayToXml($value, $xml->addChild($key)); |
|
| 350 | 350 | } |
| 351 | 351 | else{ //indexed |
| 352 | - foreach ($value as $sub_value){ |
|
| 352 | + foreach ($value as $sub_value){ |
|
| 353 | 353 | $xml->addChild($key, $sub_value); |
| 354 | - } |
|
| 354 | + } |
|
| 355 | 355 | } |
| 356 | 356 | } else { |
| 357 | 357 | $xml->addChild($key, $value); |