From 3ae202ff151fbb74173364f257d0694e9da87a47 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Wed, 20 Sep 2017 10:49:52 +0200 Subject: [PATCH] Fix error showing image when there is no data to show in graphs - #1283 --- pandora_console/include/functions_graph.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 0ef5e1d9d3..7154c2229f 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -5503,13 +5503,13 @@ function graph_nodata_image($width = 300, $height = 110, $type = 'area', $text = $image = ui_get_full_url('images/image_problem_' . $type . '.png', false, false, false); - if ($text == '') { - $text = __('No data to show'); - } + // if ($text == '') { + // $text = __('No data to show'); + // } $text_div = '
' . $text . '
'; - $image_div = '
' . + $image_div = '
' . $text_div . '
'; $div = '
' .