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