Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix nullpointer in bill chart controller.
James Cole96093e313a35
diff --git a/app/Http/Controllers/Chart/BillController.php b/app/Http/Controllers/Chart/BillController.phpindex a5ab00b99b..737698fc6e 100644--- a/app/Http/Controllers/Chart/BillController.php+++ b/app/Http/Controllers/Chart/BillController.php@@ -179,7 +179,7 @@ class BillController extends Controller}$amount = bcmul($journal['amount'], '-1');if ($this->convertToNative && $currencyId !== $journal['currency_id']) {- $amount = bcmul($journal['native_amount'], '-1');+ $amount = bcmul($journal['native_amount'] ?? '0', '-1');}if ($this->convertToNative && $currencyId === $journal['foreign_currency_id']) {$amount = bcmul($journal['foreign_amount'], '-1');