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