From d20c2fcde53b980eaf50b2fab698086a63aa8adb Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 4 Aug 2010 17:26:17 +0000 Subject: [PATCH] 2010-08-04 Sergio Martin * include/functions_reporting.php: Fixed the get_agent_module_info function for avoid to show the disabled modules information git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3100 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 10 ++++++++++ pandora_console/include/functions_reporting.php | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 119c8f35f4..cf2db4fd5b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2010-08-04 Sergio Martin + + * include/functions_reporting.php: Fixed the get_agent_module_info function + for avoid to show the disabled modules information + +2010-08-04 Sergio Martin + + * images/status_sets/default/module_no_data_ball.png: Added a image + to modules without data + 2010-08-04 Sergio Martin * include/styles/pandora.css diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 9592d450e1..6e6c0a49b2 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -1506,8 +1506,14 @@ function get_agent_module_info ($id_agent, $filter = false) { return $return; } + if($filter != ''){ + $filter = 'AND '; + } + + $filter = 'disabled = 0'; + $modules = get_agent_modules($id_agent, false, $filter, true, false); - + if ($modules === false) { return $return; }