From b8e3b869efbd8b2535a2f92885a0ce6c956f04d3 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 1 Jul 2010 10:46:08 +0000 Subject: [PATCH] 2010-07-01 Sergio Martin * include/functions_db.php: Fixed the notice when delete a IP adress from agent configuration for bug: 3016410 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2946 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_db.php | 2 ++ 2 files changed, 8 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index e23fcece9e..37bd5d5e58 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-07-01 Sergio Martin + + * include/functions_db.php: Fixed the notice when + delete a IP adress from agent configuration for + bug: 3016410 + 2010-07-01 Sergio Martin * godmode/reporting/reporting_builder.list_items.php: Fixed the diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index 700ae6d30d..8be54bfbe1 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -1563,6 +1563,8 @@ function agent_add_address ($id_agent, $ip_address) { * @param string IP address to unassign */ function agent_delete_address ($id_agent, $ip_address) { + global $config; + $sql = sprintf ("SELECT id_ag FROM taddress_agent, taddress WHERE taddress_agent.id_a = taddress.id_a AND ip = '%s' AND id_agent = %d",$ip_address, $id_agent);