fixing #4 *really* *tested*

added gitignore
highcharts
agp8x 2014-08-03 01:01:50 +02:00
parent ac148bee7c
commit 01272e92b9
2 changed files with 6 additions and 1 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
data/
*~
*.png
*.svg
charts/

View File

@ -132,7 +132,7 @@ function generateChart($today,$mode,$hours=0,$dateInput){
$summary=$db->select('summary','*',$date_array,'ORDER BY id DESC');
$recentSummary=true;
foreach($types as $tmp){
if($tmp=$types[1]){
if($tmp==$types[1]){
continue;
}
$recentSummary=($summary[0][$tmp.'-min-time'] > 0) && $recentSummary;