diff options
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 462a2c39f..4e3130ef7 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -222,7 +222,8 @@ function auth_aclcheck($id,$user,$groups){ if(!is_array($groups)) $groups = array(); //prepend groups with @ - for($i=0; $i<count($groups); $i++){ + $cnt = count($groups); + for($i=0; $i<$cnt; $i++){ $groups[$i] = '@'.$groups[$i]; } //if user is in superuser group return 255 (acl_admin) |