Skip to content

Commit 02aef15

Browse files
authored
Update PrestashopWebServiceLibrary.php
If $info is not defined, an error occurs.
1 parent 6be8846 commit 02aef15

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)