From d76d84247fd2740f692218266f6876c8618efd88 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Thu, 30 Sep 2010 07:57:34 +0000 Subject: [PATCH] 2010-09-30 Sergio Martin * 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 --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_agents.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 48c7d7fe83..a43509cad3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-09-30 Sergio Martin + + * include/functions_agents.php: Fixed SQL errors in + alerts view with not administrator users for bug: 3078113 + 2010-09-29 Miguel de Dios * include/functions_groups.php: added first version of file with the diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 73f9994a72..0057a4bcd5 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -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); }