From 76797210072903f8c813009b8d0d520a39f1823a Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 8 Feb 2016 21:07:11 +0100 Subject: [PATCH] float > string. --- app/Http/Controllers/Chart/ReportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Chart/ReportController.php b/app/Http/Controllers/Chart/ReportController.php index a2951cdf5a..c80467674a 100644 --- a/app/Http/Controllers/Chart/ReportController.php +++ b/app/Http/Controllers/Chart/ReportController.php @@ -160,7 +160,7 @@ class ReportController extends Controller while ($start < $end) { $currentIncome = $this->pluckFromArray($start->year, $earned); - $currentExpense = $this->pluckFromArray($start->year, $spent) * -1; + $currentExpense = bcmul($this->pluckFromArray($start->year, $spent), '-1'); $income = bcadd($income, $currentIncome); $expense = bcadd($expense, $currentExpense);