diff --git a/src/PrestashopWebServiceLibrary.php b/src/PrestashopWebServiceLibrary.php index ab214c4..b8568e0 100644 --- a/src/PrestashopWebServiceLibrary.php +++ b/src/PrestashopWebServiceLibrary.php @@ -214,10 +214,9 @@ protected function executeCurl($url, array $options = array()) $response = curl_exec($session); $error = false; + $info = curl_getinfo($session); if ($response === false) { $error = curl_error($session); - } else { - $info = curl_getinfo($session); } curl_close($session);