Skip to content

Commit

Permalink
Merge pull request #28 from robmachado/master
Browse files Browse the repository at this point in the history
ISSUE #27 BUG na ultima alteração
  • Loading branch information
robmachado authored Oct 14, 2021
2 parents 99669a1 + 23ae558 commit 2952d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function pull($uri)
$ret['response'] = $response;
$ret['httpcode'] = $httpcode;
curl_close($oCurl);
if (intval($soaperror_code) == 0) {
if (intval($soaperror_code) != 0) {
throw new \Exception("Erro cURL [{$soaperror_code}] {$soaperror}");
}
if ($httpcode != 200) {
Expand Down

0 comments on commit 2952d76

Please sign in to comment.