From 01272e92b955b1643db2deebfdf32a6516b38ea8 Mon Sep 17 00:00:00 2001 From: agp8x Date: Sun, 3 Aug 2014 01:01:50 +0200 Subject: [PATCH] fixing #4 *really* *tested* added gitignore --- .gitignore | 5 +++++ draw.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5a70bd6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +data/ +*~ +*.png +*.svg +charts/ diff --git a/draw.php b/draw.php index 0ced59a..4ec6bcb 100644 --- a/draw.php +++ b/draw.php @@ -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;