From fadffc6346d4d1e7a2087107fdb85356fd10f189 Mon Sep 17 00:00:00 2001 From: agp8x Date: Fri, 25 Sep 2015 00:20:07 +0200 Subject: [PATCH] improved handling of missing values --- PREV_VERSION | 2 +- draw.php | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/PREV_VERSION b/PREV_VERSION index 9ee333d..7cab4d8 100644 --- a/PREV_VERSION +++ b/PREV_VERSION @@ -1 +1 @@ -718552a \ No newline at end of file +bb0bfa4 \ No newline at end of file diff --git a/draw.php b/draw.php index 6c9d3cc..8d44869 100644 --- a/draw.php +++ b/draw.php @@ -57,10 +57,7 @@ function generateChart($today,$mode,$hours=0,$dateInput){ $datas[]=$db->selectRange($type.$i,'*',$rangeSelector); if($datas[$i-1]===false){ $html.='No values ('.$type.$i.')'; - /* TODO: think about*/ - if($type!="ambi"){ - return; - } + $datas[$i-1]=array(0,0); } } }else{