Skip to content

Commit

Permalink
Undefined index: description
Browse files Browse the repository at this point in the history
solves #65
  • Loading branch information
BBrunekreeft committed Jul 3, 2019
1 parent ad0ea00 commit 34e2767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Transaction/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function processResult($result)
isset($output['request']) &&
$output['request']['result'] != 1 &&
$output['request']['result'] !== 'TRUE') {
throw new Error\Api($output['request']['errorId'] . ' - ' . $output['request']['errorMessage']. ' '. $output['description']);
throw new Error\Api($output['request']['errorId'] . ' - ' . $output['request']['errorMessage']. ' '. (isset($output['description']) ? $output['description'] : ''));
}

return parent::processResult($result);
Expand Down

0 comments on commit 34e2767

Please sign in to comment.