From 58fc7745646a02ca196e2e72e16f2b1ef369d4da Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 20 Oct 2014 16:43:03 +0200 Subject: [PATCH] Added function 'modules_get_agent_group' --- pandora_console/include/functions_modules.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index 3e108754de..5627f395a7 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -725,6 +725,19 @@ function modules_get_agentmodule ($id_agentmodule) { } } +function modules_get_agent_group($id_agent_module) { + $return = false; + + $id_agent = modules_get_agentmodule_agent( + $id_agent_module); + + if (!empty($id_agent)) { + $return = agents_get_agent_group($id_agent); + } + + return $return; +} + /** * Check the module exists in the DB. *