From f2afb2e05f7cec93a3fc479636ffcadbc2b6b164 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 8 Jan 2016 10:47:04 +0100 Subject: [PATCH] Fixed the horizontal bars in the dashboard. TICKET: #3157 --- pandora_console/include/graphs/fgraph.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index fd008b1b82..052df71c64 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -559,14 +559,8 @@ function hbar_graph($flash_chart, $chart_data, $width, $height, } if ($flash_chart) { - if ($return) { - return flot_hcolumn_chart( - $chart_data, $width, $height, $water_mark_url); - } - else { - echo flot_hcolumn_chart( - $chart_data, $width, $height, $water_mark_url); - } + return flot_hcolumn_chart( + $chart_data, $width, $height, $water_mark_url); } else { $graph = array();