From 3613d1c1fc82d4aff5ac10528079a61bfc8f5ab1 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 21 Sep 2017 18:37:57 +0200 Subject: [PATCH] fixed minor errors tips --- pandora_console/include/functions_graph.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 0bc6717986..11450fbbf5 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -2125,6 +2125,7 @@ function fullscale_data_combined($module_list, $period, $date){ $data_prev = array(); + ksort($data_all); foreach ($data_all as $key => $value) { foreach ($module_list as $key_module => $value_module) { if(!isset($value[$key_module])){ @@ -4287,7 +4288,7 @@ function fullscale_data ( &$chart_data, &$chart_extra_data, &$long_index, $timestamp_second = $value['utimestamp']; foreach ($events as $key => $val) { - if( $val['utimestamp'] >= $timestamp_first && + if( $val['utimestamp'] > $timestamp_first && $val['utimestamp'] <= $timestamp_second ){ if ($show_events == 1) { $event_ids[] = $val['id_evento'];