diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f0753babbf..f2a0b72994 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2009-07-16 Pablo de la ConcepcipĆ³n + + * include/functions_agents.php: fixed repeated empty test and safe_int call + 2009-07-16 Jorge Gonzalez * godmode/servers/manage_recontask_form.php: fixed wrong group diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 89adcfd0b5..3046cf9aaf 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -28,11 +28,11 @@ function create_agent ($name, $id_group, $interval, $ip_address, $values = false) { if (empty ($name)) return false; - if (empty ($name)) + if (empty ($id_group)) return false; if (empty ($ip_address)) return false; - $interval = safe_int ($interval, 300); + $interval = safe_int ($interval,1, 300); if (empty ($interval)) return false; if (! is_array ($values))