diff --git a/app/Http/Controllers/Transaction/ShowController.php b/app/Http/Controllers/Transaction/ShowController.php index 4b4fdc0afd..68cd2e8277 100644 --- a/app/Http/Controllers/Transaction/ShowController.php +++ b/app/Http/Controllers/Transaction/ShowController.php @@ -151,7 +151,7 @@ class ShowController extends Controller ]; } $amounts[$symbol]['amount'] = bcadd($amounts[$symbol]['amount'], $transaction['amount']); - if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount']) { + if (null !== $transaction['foreign_amount'] && '' !== $transaction['foreign_amount'] && bccomp('0', $transaction['foreign_amount']) !== 0) { // same for foreign currency: $foreignSymbol = $transaction['foreign_currency_symbol']; Log::debug(sprintf('Foreign currency symbol is "%s"', $foreignSymbol));