From ec870aa2f69c57ef1c12201708c725d5c46ac65b Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Thu, 2 Nov 2017 10:41:07 +0100 Subject: [PATCH] Initialize the group cache. --- pandora_console/include/functions_users.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/functions_users.php b/pandora_console/include/functions_users.php index 8e3eac823b..957c8c569e 100755 --- a/pandora_console/include/functions_users.php +++ b/pandora_console/include/functions_users.php @@ -152,6 +152,8 @@ function users_get_groups_for_select($id_user, $privilege = "AR", $returnAllGro * @return array A list of the groups the user has certain privileges. */ function users_get_groups ($id_user = false, $privilege = "AR", $returnAllGroup = true, $returnAllColumns = false, $id_groups = null, $keys_field = 'id_grupo') { + static $group_cache = array(); + if (empty ($id_user)) { global $config;