summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0ea4829)
raw | patch | inline | side by side (parent: 0ea4829)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Feb 2009 10:11:58 +0000 (10:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Feb 2009 10:11:58 +0000 (10:11 +0000) |
-Fixed problems with single object root DSE (e.g. dc=sample)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13391 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13391 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_userinfo.inc | patch | blob | history |
index c410e70db7b47e410a67239eabdbcacc5f2fd813..1966462bf8b04b64b64935de471452f11860a6ca 100644 (file)
$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];