Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
fix a null pointer
Sander Dorigo7cb41fb333f9
diff --git a/app/Support/Chart/Budget/FrontpageChartGenerator.php b/app/Support/Chart/Budget/FrontpageChartGenerator.phpindex 5c96be4488..f3dc2c2b0c 100644--- a/app/Support/Chart/Budget/FrontpageChartGenerator.php+++ b/app/Support/Chart/Budget/FrontpageChartGenerator.php@@ -203,8 +203,7 @@ class FrontpageChartGenerator$amount = $limit->native_amount;Log::debug(sprintf('Amount is now "%s".', $amount));}--+ $amount = null === $amount ? '0' : $amount;$sumSpent = bcmul($entry['sum'], '-1'); // spent$data[0]['entries'][$title] ??= '0';$data[1]['entries'][$title] ??= '0';