Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed the "undefined" error.
James Cole6a8bf0aa62d0
diff --git a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.phpindex d54c849f2c..9bc1d28877 100644--- a/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php+++ b/app/Generator/Chart/Budget/ChartJsBudgetChartGenerator.php@@ -166,8 +166,8 @@ class ChartJsBudgetChartGenerator implements BudgetChartGenerator$name = $entry['name'];$spent = $entry['spent'];$budgeted = $entry['budgeted'];- $data['datasets'][] = ['label' => 'Spent on ' . $name, 'data' => $spent];- $data['datasets'][] = ['label' => 'Budgeted for ' . $name, 'data' => $budgeted];+ $data['datasets'][] = ['label' => 'Spent on ' . $name, 'data' => array_values($spent)];+ $data['datasets'][] = ['label' => 'Budgeted for ' . $name, 'data' => array_values($budgeted)];}$data['count'] = count($data['datasets']);