From 131a04a4ceaf6564f8972173909b64e1008e9c08 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 23 Mar 2021 09:55:57 +0100 Subject: [PATCH] Fixed api get all agents --- pandora_console/include/functions_api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index aebef6c06b..4f6f6459fe 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -2015,9 +2015,9 @@ function api_get_all_agents($thrash1, $thrash2, $other, $returnType) } $ag_groups = implode(',', (array) $ag_groups); - } - $where .= ' AND (id_grupo IN ('.$ag_groups.') OR id_group IN ('.$ag_groups.'))'; + $where .= ' AND (id_grupo IN ('.$ag_groups.') OR id_group IN ('.$ag_groups.'))'; + } } if (isset($other['data'][3])) {