Skip to content

Commit

Permalink
Fix SOAP error
Browse files Browse the repository at this point in the history
  • Loading branch information
drobinson committed Oct 18, 2016
1 parent c37387a commit 9e02c77
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/code/core/Mage/Api/Model/Server/Handler/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,21 @@ public function globalFaults($sessionId)
* @param array $result
* @return mixed
*/
public function processingMethodResult(array $result)
public function processingMethodResult($result)
{
foreach ($result as &$row) {
if (!is_null($row) && !is_bool($row) && !is_numeric($row)) {
$row = $this->processingRow($row);
if (is_array($result)) {
foreach ($result as &$row) {
if (!is_null($row) && !is_bool($row) && !is_numeric($row)) {
if (is_array($row)) {
$row = $this->processingMethodResult($row);
} else {
$row = $this->processingRow($row);
}
}
}
} else {
if (!is_null($result) && !is_bool($result) && !is_numeric($result)) {
$result = $this->processingRow($result);
}
}
return $result;
Expand Down

0 comments on commit 9e02c77

Please sign in to comment.