Skip to content

Commit

Permalink
Merge pull request #10 from buckaroo-it/BP-1328-wrong-refund-value-if…
Browse files Browse the repository at this point in the history
…-modified-a-previous-refund-value

SQL Error fix when no refund transaction available
  • Loading branch information
serpentscode authored Feb 17, 2022
2 parents 316225e + c75d26f commit 3ff9741
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions buckaroo3.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ public function hookDisplayAdminOrderMainBottom($params)
*/
protected function getAllRefundedTransactions(array $transactionIds)
{
if(empty($transactionIds)){
return 0;
}

$transactionIds = implode(",",$transactionIds);
$transactions = Db::getInstance()->query(
'SELECT `transaction_id`, `original_transaction`
Expand Down

0 comments on commit 3ff9741

Please sign in to comment.