Skip to content

Commit c4f5d92

Browse files
committed
Corregir mal uso de curl_error
1 parent c4fd8ae commit c4f5d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GeoAPI.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private function _call($accion, $params, $deferred){
5050

5151
if(curl_errno($curl) || curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200){
5252
$deferred->reject($resp);
53-
echo "Error: " . curl_error($resp);
53+
echo "Error: " . curl_error($curl);
5454
}else{
5555
$data = json_decode($resp, true);
5656

0 commit comments

Comments
 (0)