Initialize the group cache.

This commit is contained in:
Ramon Novoa 2017-11-02 10:41:07 +01:00
parent 7d3e86296b
commit ec870aa2f6
1 changed files with 2 additions and 0 deletions

View File

@ -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;