diff options
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 0a6b1cb76..c44e2457d 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -268,7 +268,7 @@ function auth_ismanager($user=null,$groups=null,$adminonly=false){ if(!$conf['useacl']) return false; if(is_null($user)) $user = $_SERVER['REMOTE_USER']; - if(is_null($groups)) $groups = $USERINFO['grps']; + if(is_null($groups)) $groups = (array) $USERINFO['grps']; $user = auth_nameencode($user); // check username against superuser and manager |