Commit 3d65e9fa authored by Ad Schellevis's avatar Ad Schellevis

fix config priv section, expecting array for single item.

parent 878773ef
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment