summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-11-02 19:18:50 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-11-02 19:18:50 +0100
commit90583e9f0757aa61f17aff8dc5111ff01f4a3d3c (patch)
tree4690d1b61d280a00aec0abe05fea28a1fed39a63 /inc/auth.php
parent49dc20b70fd77c6435f7786202a2c8f50be51e3a (diff)
downloadrpg-90583e9f0757aa61f17aff8dc5111ff01f4a3d3c.tar.gz
rpg-90583e9f0757aa61f17aff8dc5111ff01f4a3d3c.tar.bz2
fix problems if $USERINFO['grps'] is not set
darcs-hash:20071102181850-7ad00-9c2c9b0ef953274b8abdadd95c53e8f4e1982810.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php2
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