diff --git a/app/Http/Controllers/Chart/CategoryController.php b/app/Http/Controllers/Chart/CategoryController.php index 57a524d94b..892464b254 100644 --- a/app/Http/Controllers/Chart/CategoryController.php +++ b/app/Http/Controllers/Chart/CategoryController.php @@ -470,8 +470,8 @@ class CategoryController extends Controller $currentStart = clone $current; $currentEnd = Navigation::endOfPeriod($currentStart, $viewRange); - $spent = strval(array_sum($repository->spentPerDay($category, $currentStart, $currentEnd, new Collection))); - $earned = strval(array_sum($repository->earnedPerDay($category, $currentStart, $currentEnd, new Collection))); + $spent = strval(array_sum($repository->spentPerDay($category, $currentStart, $currentEnd, $accounts))); + $earned = strval(array_sum($repository->earnedPerDay($category, $currentStart, $currentEnd, $accounts))); $entry = [ $category->name,