fixed minor error combined graph fullscale

This commit is contained in:
daniel 2018-01-22 15:46:23 +01:00
parent d471b0889c
commit 36429616f3
1 changed files with 9 additions and 2 deletions

View File

@ -1321,7 +1321,6 @@ function graphic_combined_module ($module_list, $weight_list, $period,
$data = array ();
}
// Uncompressed module data
if ($uncompressed_module) {
$min_necessary = 1;
@ -2387,8 +2386,9 @@ function fullscale_data_combined($module_list, $period, $date, $flash_charts, $p
$array_percentil = array();
}
$previous_data = modules_get_previous_data ($value_module, $datelimit);
$data_uncompress = db_uncompress_module_data($value_module, $datelimit, $date);
foreach ($data_uncompress as $key_data => $value_data) {
foreach ($value_data['data'] as $k => $v) {
if($flash_charts) {
@ -2398,6 +2398,13 @@ function fullscale_data_combined($module_list, $period, $date, $flash_charts, $p
$real_date = $v['utimestamp'];
}
if(!isset($v['datos'])){
$v['datos'] = $previous_data;
}
else{
$previous_data = $v['datos'];
}
if (!is_null($percentil) && $percentil) {
$array_percentil[] = $v['datos'];
}