Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix null error [skip ci]
James Colec7250bfcbaa5
diff --git a/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php b/app/Generator/Chart/Bill/ChartJsBillChartGenerator.phpindex f81362c1b4..f756dadcce 100644--- a/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php+++ b/app/Generator/Chart/Bill/ChartJsBillChartGenerator.php@@ -75,7 +75,8 @@ class ChartJsBillChartGenerator implements BillChartGeneratorInterface/** journalAmount has been collected in BillRepository::getJournals*/- $actualAmount[] = round(bcmul($entry->journalAmount, '-1'), 2);+ $journalAmount = $entry->journalAmount ?? '0';+ $actualAmount[] = round(bcmul($journalAmount, '-1'), 2);}$data['datasets'][] = [