Skip to content

Commit 6b06dcd

Browse files
authored
Merge pull request #11 from sergiosusa/bugfix/index-php-not-found-on-delete-response
if response comes without pdf add a null instead of index not found.
2 parents 0c7f873 + 26a49a3 commit 6b06dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function createFromResponse($response)
5454

5555
$apiResponse = new static();
5656

57-
$apiResponse->pdf = $data['pdf'];
57+
$apiResponse->pdf = isset($data['pdf'])?$data['pdf']: null;
5858
$apiResponse->mbIn = $data['mbIn'];
5959
$apiResponse->mbOut = $data['mbOut'];
6060
$apiResponse->cost = $data['cost'];

0 commit comments

Comments
 (0)