Merge branch 'tardanza-en-vista-de-arbol-carrefour' into 'develop'

Initialize the group cache.

See merge request artica/pandorafms!1006
This commit is contained in:
vgilc 2017-11-03 12:10:55 +01:00
commit 49d5f0878f
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. * @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') { 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)) { if (empty ($id_user)) {
global $config; global $config;