diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3cb35e2dc2..5618e82301 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-08-29 Dario Rodriguez + + * include/functions_graph.php: Fixed a bug setting graphic resolution + to 1 that displays some errors with event graphs. + + Fixes: #3398524 + 2011-08-29 Javier Lanz * operation/agentes/ver_agente.php: Fixed a bug filling modules combo diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 1737db1429..a1cabc53a9 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1532,7 +1532,8 @@ function fs_agent_event_chart ($data, $width, $height, $step = 1) { $count = 0; $num_vlines = 0; foreach ($data as $name => $value) { - if ($count++ % $step == 0) { + + if (($step >= 1) && ($count++ % $step == 0)) { $show_name = '1'; $num_vlines++; } else {