Skip to content

Commit

Permalink
Merge pull request #11 from sergiosusa/bugfix/index-php-not-found-on-…
Browse files Browse the repository at this point in the history
…delete-response

if response comes without pdf add a null instead of index not found.
  • Loading branch information
apexdodge authored Aug 9, 2019
2 parents 0c7f873 + 26a49a3 commit 6b06dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function createFromResponse($response)

$apiResponse = new static();

$apiResponse->pdf = $data['pdf'];
$apiResponse->pdf = isset($data['pdf'])?$data['pdf']: null;
$apiResponse->mbIn = $data['mbIn'];
$apiResponse->mbOut = $data['mbOut'];
$apiResponse->cost = $data['cost'];
Expand Down

0 comments on commit 6b06dcd

Please sign in to comment.