improved handling of missing values

master
agp8x 2015-09-25 00:20:07 +02:00
parent f5e186ceae
commit fadffc6346
2 changed files with 2 additions and 5 deletions

View File

@ -1 +1 @@
718552a
bb0bfa4

View File

@ -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{