diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 0fc4dbe4ed..2bb541a819 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-01-12 Ramon Novoa + + * include/graphs/functions_fsgraph.php: Fixed empty chart detection for + flash charts. + 2012-01-12 Vanessa Gil godmode/netflow/nf_edit.php godmode/netflow/nf_report.php diff --git a/pandora_console/include/graphs/functions_fsgraph.php b/pandora_console/include/graphs/functions_fsgraph.php index 8ed88dbc0f..00615d0e75 100755 --- a/pandora_console/include/graphs/functions_fsgraph.php +++ b/pandora_console/include/graphs/functions_fsgraph.php @@ -409,7 +409,9 @@ function fs_area_graph($chart_data, $width, $height, $color, $legend, $long_inde $show_name = '0'; } - $empty = 0; + if ($v != 0) { + $empty = 0; + } if ($a < 3) { $a++; @@ -587,7 +589,7 @@ function fs_2d_column_chart ($data, $width, $height, $homeurl = '', $reduce_data } else { $show_name = '0'; } - if ($value > 0) { + if ($value != 0) { $empty = 0; } $chart->addChartData($value, 'name=' . clean_flash_string($name) . ';showName=' . $show_name . ';color=95BB04'); @@ -662,7 +664,7 @@ function fs_2d_hcolumn_chart ($data, $width, $height) { } else { $show_name = '0'; } - if ($value > 0) { + if ($value != 0) { $empty = 0; } $chart->addChartData($value, 'name=' . clean_flash_string($name) . ';showName=' . $show_name/* . ';color=95BB04'*/); @@ -699,7 +701,7 @@ function fs_3d_column_chart ($data, $width, $height) { } else { $show_name = '0'; } - if ($value > 0) { + if ($value != 0) { $empty = 0; } $chart->addChartData($value, 'name=' . clean_flash_string($name) . ';showName=' . $show_name . ';color=95BB04');