From 90583e9f0757aa61f17aff8dc5111ff01f4a3d3c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 2 Nov 2007 19:18:50 +0100 Subject: fix problems if $USERINFO['grps'] is not set darcs-hash:20071102181850-7ad00-9c2c9b0ef953274b8abdadd95c53e8f4e1982810.gz --- inc/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/auth.php') 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 -- cgit v1.2.3