From 16a8340e1d100ea87f5cdea6b251ff09e9fac68d Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 11 Oct 2012 17:24:41 +0000 Subject: [PATCH] 2012-10-11 Miguel de Dios * include/functions_agents.php: fixed the order of vars in the asignation into the code of function "agents_get_modules". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7070 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_agents.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index ba4c1693b3..831ca1e2fd 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-10-11 Miguel de Dios + + * include/functions_agents.php: fixed the order of vars in the + asignation into the code of function "agents_get_modules". + 2012-10-11 Ramon Novoa * include/functions_graph.php, diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 668966d407..385d82dd27 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1101,7 +1101,7 @@ function agents_get_modules ($id_agent = null, $details = false, $filter = false if (empty($userGroups)) { return array(); } - $id_userGroups = $id_groups = array_keys($groups); + $id_userGroups = $id_groups = array_keys($userGroups); // ================================================================= // When there is not a agent id. Get a agents of groups that the