2008-10-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: Quick fix, should've been included in the last 2 versions. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1155 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
6fd57f6a3f
commit
13edae99af
|
@ -1537,7 +1537,7 @@ function return_status_agent_module ($id_agentmodule = 0) {
|
|||
}
|
||||
// No alerts fired for this agent module
|
||||
return 1;
|
||||
} elseif ($estado == 0) { // 0 is ok for estado field
|
||||
} elseif ($status == 0) { // 0 is ok for estado field
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
@ -2232,7 +2232,7 @@ function delete_agent ($id_agents) {
|
|||
//IP address
|
||||
$sql = sprintf ("SELECT id_ag FROM taddress_agent, taddress WHERE taddress_agent.id_a = taddress.id_a AND id_agent = %d", $id_agent);
|
||||
$result = get_db_all_rows_sql ($sql);
|
||||
if ($result)
|
||||
|
||||
foreach ($result as $row) {
|
||||
temp_sql_delete ("taddress_agent", "id_ag", $row["id_ag"]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue