We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71bc42a commit 736e512Copy full SHA for 736e512
libraries/Curl.php
@@ -298,16 +298,19 @@ public function execute()
298
// Execute the request & and hide all output
299
$this->response = curl_exec($this->session);
300
$this->info = curl_getinfo($this->session);
301
-
+
302
// Request failed
303
if ($this->response === FALSE)
304
{
305
- $this->error_code = curl_errno($this->session);
306
- $this->error_string = curl_error($this->session);
307
+ $errno = curl_errno($this->session);
+ $error = curl_error($this->session);
308
curl_close($this->session);
309
$this->set_defaults();
310
311
+ $this->error_code = $errno;
312
+ $this->error_string = $error;
313
314
return FALSE;
315
}
316
0 commit comments