Skip to content

Commit

Permalink
Some small change on PR #85
Browse files Browse the repository at this point in the history
Some small change on PR #85
  • Loading branch information
Michael v/d Rijt authored Mar 14, 2017
1 parent f1a1494 commit 29d2a42
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Artisaninweb/SoapWrapper/SoapWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ public function call($call, $data = [])
list($name, $function) = explode('.', $call);

return $this->client($name, function ($client) use ($function, $data) {
/** @var Client $client */
return $client->SoapCall($function, ($client->_soap_version == 1) ? [$data]:$data);
/** @var Client $client */
if ($client->_soap_version == 1) {
$data = [$data];
}

return $client->SoapCall($function, $data);
});
}

Expand Down

0 comments on commit 29d2a42

Please sign in to comment.