Skip to content

Commit 7c0ac76

Browse files
Merge pull request #24 from PetrKcz/patch-1
Update PrestashopWebServiceLibrary.php
2 parents 6be8846 + 02aef15 commit 7c0ac76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PrestashopWebServiceLibrary.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,9 @@ protected function executeCurl($url, array $options = array())
214214
$response = curl_exec($session);
215215

216216
$error = false;
217+
$info = curl_getinfo($session);
217218
if ($response === false) {
218219
$error = curl_error($session);
219-
} else {
220-
$info = curl_getinfo($session);
221220
}
222221

223222
curl_close($session);

0 commit comments

Comments
 (0)