Skip to content

Commit

Permalink
Merge pull request #42 from renandelmonico/erro-curl
Browse files Browse the repository at this point in the history
Corrigida verificação de erro no envio da requisição.
  • Loading branch information
marabesi authored Feb 20, 2020
2 parents c9c7445 + d191a95 commit 495fe9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Webservice/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function doRequest($url)
print_r(curl_getinfo($curl));
}

if ($xml === false) {
if ($xml === false || $xml === '') {
$xml = curl_error($curl);
}

Expand Down

0 comments on commit 495fe9a

Please sign in to comment.