Permalink
Browse files

Bug #14782 logic problem in SOAP_Base bulids multidimensional arrays …

…instead of flat

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP/trunk@322283 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 0944483 commit b2f170edf7c9a65604d734f9ba16bdb24b938149 @CloCkWeRX CloCkWeRX committed Jan 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Base.php
View
@@ -822,7 +822,11 @@ function _decode($soapval)
$isstruct = false;
$return = array($return->{$item->name}, $d);
} else {
- $return->{$item->name} = array($return->{$item->name}, $d);
+ if (is_array($return->{$item->name})) {
+ $return->{$item->name} = array_merge($return->{$item->name}, array($d));
+ } else {
+ $return->{$item->name} = array($return->{$item->name}, $d);
+ }
}
} else {
$return->{$item->name} = $this->_decode($item);

0 comments on commit b2f170e

Please sign in to comment.