summaryrefslogtreecommitdiff
path: root/inc/auth.php
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-04-27 20:22:43 +0200
committerandi <andi@splitbrain.org>2005-04-27 20:22:43 +0200
commit2cd2db38e844b55a35cbbbf800835d6b84531308 (patch)
tree82fcb754fb1d3b303c24ffaedcc60d39160745f5 /inc/auth.php
parent18509c28d451f8d207d58002f7881f522ae84977 (diff)
downloadrpg-2cd2db38e844b55a35cbbbf800835d6b84531308.tar.gz
rpg-2cd2db38e844b55a35cbbbf800835d6b84531308.tar.bz2
optimized count calls in for loops
darcs-hash:20050427182243-9977f-4c1ec6ce278925147379430540eec723d109444a.gz
Diffstat (limited to 'inc/auth.php')
-rw-r--r--inc/auth.php3
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)