Code

Fixed for loop
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 31 Oct 2008 07:35:06 +0000 (07:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 31 Oct 2008 07:35:06 +0000 (07:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12838 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userinfo.inc

index 7e2023a27ae2f2264f4aca0038d534f0ad5d4fad..39ea1ae1109ca2dfb7a6f06b57679f354bd39f0c 100644 (file)
@@ -596,7 +596,7 @@ class userinfo
             /* Skip objectClass '0' (e.g. users/0) get_permissions will ever return '' ??  */
             if($oc == "0") continue;
             $tmp =  $this->get_permissions($dn, $category."/".$oc);
-            for($i = 0, $l= strlen($types); $i < $l; $i++) {
+            for($i = 0; $l= strlen($types); $i < $l; $i++) {
               if(!preg_match("/".$types[$i]."/",$tmp)){ 
                 $acl = preg_replace("/".$types[$i]."/","",$acl);
               }