Skip to content

Commit

Permalink
BUGFIX EXTREST-143 Fix incorrect line formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Bashurov committed Mar 29, 2022
1 parent 796ea2c commit 561190e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected function _arrayToXml(array $array, SimpleXMLElement $xml, $parentEl =
$el = is_int($key) && $parentEl ? $parentEl : $key;
if (is_array($value)) {
$this->_arrayToXml($value, $this->_isAssocArray($value) ? $xml->addChild($el) : $xml, $el);
} elseif(!isset($xml->{$el})) {
} elseif (!isset($xml->{$el})) {
$xml->{$el} = (string) $value;
} else {
$xml->{$el}[] = (string) $value;
Expand Down

0 comments on commit 561190e

Please sign in to comment.