From 3b3cec391d5a77ada72287aa88421e901576e4c0 Mon Sep 17 00:00:00 2001 From: agp8x Date: Mon, 28 Jul 2014 22:00:34 +0200 Subject: [PATCH] enabled check for summaries, fixing #2 --- draw.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/draw.php b/draw.php index 1110d2a..0ced59a 100644 --- a/draw.php +++ b/draw.php @@ -131,13 +131,12 @@ function generateChart($today,$mode,$hours=0,$dateInput){ $summary=$db->select('summary','*',$date_array,'ORDER BY id DESC'); $recentSummary=true; - # uncomment to activate rebuild - #foreach($types as $tmp){ - # if($tmp=$types[1]){ - # continue; - # } - # $recentSummary=($summary[0][$tmp.'-min-time'] > 0) && $recentSummary; - #} + foreach($types as $tmp){ + if($tmp=$types[1]){ + continue; + } + $recentSummary=($summary[0][$tmp.'-min-time'] > 0) && $recentSummary; + } if($summary===false ||isset($_GET['totalforce']) || ! $recentSummary){ //stats are not in db, generate new, also redraw graph $forceRedraw=true;