mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
fix config priv section, expecting array for single item.
This commit is contained in:
parent
878773ef6f
commit
3d65e9fa6f
@ -251,8 +251,10 @@ function & getGroupEntryByGID($gid) {
|
||||
function get_user_privileges(& $user) {
|
||||
|
||||
$privs = $user['priv'];
|
||||
if (!is_array($privs))
|
||||
if (!is_array($privs)) {
|
||||
$privs = array();
|
||||
$privs[] = $user['priv'];
|
||||
}
|
||||
|
||||
$names = local_user_get_groups($user, true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user