Skip to content

Commit

Permalink
Corrigida verificacao de erro no envio da requisicao. Quando ocorre p…
Browse files Browse the repository at this point in the history
…roblema de bad certificate nao retornava o erro
  • Loading branch information
renandelmonico committed Feb 18, 2020
1 parent 912f662 commit d191a95
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 d191a95

Please sign in to comment.