summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-26 14:33:45 +0100
committerandi <andi@splitbrain.org>2005-02-26 14:33:45 +0100
commit074cf26b87d427287e6179f51b9e64c2b1e88ac2 (patch)
tree7ae8b6b76ec82094050a9b81d1a37539a7010052
parent79b608ce5502b7d28087a42cab5c09927c117c8f (diff)
downloadrpg-074cf26b87d427287e6179f51b9e64c2b1e88ac2.tar.gz
rpg-074cf26b87d427287e6179f51b9e64c2b1e88ac2.tar.bz2
auth fix
darcs-hash:20050226133345-9977f-1e13c0125ea5d62af4235ef043a644acbede67dc.gz
-rw-r--r--inc/auth.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/auth.php b/inc/auth.php
index 1e84d6552..fdd897423 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -217,6 +217,9 @@ function auth_aclcheck($id,$user,$groups){
//if user is superuser return 255 (acl_admin)
if($conf['superuser'] == $user) { return AUTH_ADMIN; }
+ //make sure groups is an array
+ if(!is_array($groups)) $groups = array();
+
//prepend groups with @
for($i=0; $i<count($groups); $i++){
$groups[$i] = '@'.$groups[$i];