From: hickert Date: Fri, 31 Oct 2008 07:35:06 +0000 (+0000) Subject: Fixed for loop X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6ba45429a7af6a7ca89ade1f599e3a4a3fe76cbb;p=gosa.git Fixed for loop git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12838 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 7e2023a27..39ea1ae11 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -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); }