From d191a95c3d521b82769ca4ae645c8c975399156b Mon Sep 17 00:00:00 2001 From: Renan Delmonico Date: Tue, 18 Feb 2020 16:46:58 -0300 Subject: [PATCH] Corrigida verificacao de erro no envio da requisicao. Quando ocorre problema de bad certificate nao retornava o erro --- lib/Sped/Gnre/Webservice/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sped/Gnre/Webservice/Connection.php b/lib/Sped/Gnre/Webservice/Connection.php index 69fb0b8..62489cb 100755 --- a/lib/Sped/Gnre/Webservice/Connection.php +++ b/lib/Sped/Gnre/Webservice/Connection.php @@ -144,7 +144,7 @@ public function doRequest($url) print_r(curl_getinfo($curl)); } - if ($xml === false) { + if ($xml === false || $xml === '') { $xml = curl_error($curl); }