diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f418821946..45c8b74991 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2010-12-23 Miguel de Dios + + * include/functions_agents.php: fixed when the filter stanby not exist. + 2010-12-23 Miguel de Dios * include/functions.php: in function "check_sql" added some changes in diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 1b34e8a60f..4a1ccb1767 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -114,7 +114,12 @@ function get_agent_alerts_simple ($id_agent = false, $filter = '', $options = fa if (is_array($filter)) { $disabled = $filter['disabled']; - $filter = ' AND talert_template_modules.standby = "'.$filter['standby'].'"'; + if (isset($filter['standby'])) { + $filter = ' AND talert_template_modules.standby = "'.$filter['standby'].'"'; + } + else { + $filter = ''; + } } else { $filter = '';