mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
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:
parent
4e8f0f1a1b
commit
b8e3b869ef
@ -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>
|
2010-07-01 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* godmode/reporting/reporting_builder.list_items.php: Fixed the
|
* godmode/reporting/reporting_builder.list_items.php: Fixed the
|
||||||
|
@ -1563,6 +1563,8 @@ function agent_add_address ($id_agent, $ip_address) {
|
|||||||
* @param string IP address to unassign
|
* @param string IP address to unassign
|
||||||
*/
|
*/
|
||||||
function agent_delete_address ($id_agent, $ip_address) {
|
function agent_delete_address ($id_agent, $ip_address) {
|
||||||
|
global $config;
|
||||||
|
|
||||||
$sql = sprintf ("SELECT id_ag FROM taddress_agent, taddress
|
$sql = sprintf ("SELECT id_ag FROM taddress_agent, taddress
|
||||||
WHERE taddress_agent.id_a = taddress.id_a AND ip = '%s'
|
WHERE taddress_agent.id_a = taddress.id_a AND ip = '%s'
|
||||||
AND id_agent = %d",$ip_address, $id_agent);
|
AND id_agent = %d",$ip_address, $id_agent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user