From 32a036b076f0e5a174af65064e030ec126a6ccfe Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 27 Mar 2015 19:45:47 +0100 Subject: [PATCH] Add certainty to chart. --- app/Http/Controllers/GoogleChartController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/GoogleChartController.php b/app/Http/Controllers/GoogleChartController.php index 6e5a918211..438f47e63f 100644 --- a/app/Http/Controllers/GoogleChartController.php +++ b/app/Http/Controllers/GoogleChartController.php @@ -52,9 +52,11 @@ class GoogleChartController extends Controller $start = Session::get('start', Carbon::now()->startOfMonth()); $end = Session::get('end', Carbon::now()->endOfMonth()); $current = clone $start; + $today = new Carbon; while ($end >= $current) { - $chart->addRow(clone $current, Steam::balance($account, $current), false); + $certain = $current > $today; + $chart->addRow(clone $current, Steam::balance($account, $current), $certain); $current->addDay(); }