2010-07-01 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2010-07-01 10:46:08 +00:00
parent 4e8f0f1a1b
commit b8e3b869ef
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2010-07-01 Sergio Martin <sergio.martin@artica.es>
* include/functions_db.php: Fixed the notice when
delete a IP adress from agent configuration for
bug: 3016410
2010-07-01 Sergio Martin <sergio.martin@artica.es>
* godmode/reporting/reporting_builder.list_items.php: Fixed the

View File

@ -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);