From df2ddd47efa5746e532e74040a800e39bf9ce975 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Mon, 27 Feb 2012 12:06:03 +0000 Subject: [PATCH] 2012-02-27 Juan Manuel Ramon * include/functions_graph.php: Added call to fs_error_image function when there is no data in a sparse graph. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5648 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_graph.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 893a567f82..f8a0850276 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-02-27 Juan Manuel Ramon + + * include/functions_graph.php: Added call to fs_error_image function + when there is no data in a sparse graph. + 2012-02-27 Vanessa Gil * pandoradb.sql diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index bf44f7f447..aa38f4541c 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -112,7 +112,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events, if (count ($data) < $min_necessary) { if (!$graphic_type) { if (!$projection){ - return false; + return fs_error_image (); } else{ return fs_error_image ();