Code

Updated integrated smarty to 2.6.22
[gosa.git] / gosa-core / include / class_userinfo.inc
index c410e70db7b47e410a67239eabdbcacc5f2fd813..1966462bf8b04b64b64935de471452f11860a6ca 100644 (file)
@@ -196,8 +196,9 @@ class userinfo
     $without_self_acl = $all_acl = array();
     foreach($this->ACL as $dn => $acl){
       $sdn =$dn;
-      while(strpos($dn,",") !== FALSE){
-
+      $first= TRUE; // Run at least once 
+      while(strpos($dn,",") !== FALSE || $first){
+        $first = FALSE;
         if(isset($this->ACL[$dn])){
           $all_acl[$sdn][$dn] = $this->ACL[$dn];
           $without_self_acl[$sdn][$dn] = $this->ACL[$dn];