summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];