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