2010-09-30 Sergio Martin <sergio.martin@artica.es>

* include/functions_agents.php: Fixed SQL errors in
	alerts view with not administrator users for bug: 3078113



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3321 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-09-30 07:57:34 +00:00
parent 1759e7b808
commit 48e8cbd985
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-09-30 Sergio Martin <sergio.martin@artica.es>
* include/functions_agents.php: Fixed SQL errors in
alerts view with not administrator users for bug: 3078113
2010-09-29 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_groups.php: added first version of file with the

View File

@ -241,13 +241,13 @@ function get_agent_alerts_compound ($id_agent = false, $filter = '', $options =
$subQuery = 'SELECT id_agente FROM tagente';
}
}
else if ($id_agent === false) {
else if ($id_agent == false) {
$subQuery = 'SELECT id_agente
FROM tagente WHERE disabled = 0';
}
else {
$id_agent = (array) $id_agent;
$subQuery = implode (',', $id_agent);
}