From 6d2b581887e1c6ff656d064af29ed1adb7ac6a9f Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 30 Nov 2009 11:08:09 +0000 Subject: [PATCH] 2009-11-30 Miguel de Dios * include/functions_agents.php: fix now don't show alerts with delete pending modules. * index.php: clean source code, end return that show in browser. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2143 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_agents.php | 2 +- pandora_console/index.php | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 56145cf317..d33514e6a1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2009-11-30 Miguel de Dios + + * include/functions_agents.php: fix now don't show alerts with + delete pending modules. + * index.php: clean source code, end return that show in browser. + 2009-11-30 Raul Mateos * godmode/servers/plugin.php, godmode/reporting/map_builder.php, diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 2a35edca24..da3bf0eeaa 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -140,7 +140,7 @@ function get_agent_alerts_simple ($id_agent = false, $filter = '', $options = fa } else { $id_agent = (array) $id_agent; - $id_modules = array_keys (get_agent_modules ($id_agent)); + $id_modules = array_keys (get_agent_modules ($id_agent, false, array('delete_pending' => 0))); if (empty ($id_modules)) return array (); diff --git a/pandora_console/index.php b/pandora_console/index.php index 2fcc029dd4..edccc4c08b 100644 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -272,4 +272,4 @@ echo ''; $run_time = format_numeric (microtime (true) - $config['start_time'], 3); echo "\n\n"; -?> +?> \ No newline at end of file