summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab58d2a)
raw | patch | inline | side by side (parent: ab58d2a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 4 Oct 2006 10:35:35 +0000 (10:35 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 4 Oct 2006 10:35:35 +0000 (10:35 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4849 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index e3254ed350608a960fe680f3845b36bf2da280fd..6eda98aa4bc95f3afb0029a6819c388369b4a30e 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
$Diff = ldap_explode_dn($dn,0);
/* Lets start */
+ $called = false;
while(preg_match("/,/",$dn) && $next && $cnt < $max){
$cnt ++;
$object = preg_replace("/[,].*$/","",$dn);
$dn = preg_replace("/^[^,]+,/","",$dn);
+ $called = true;
+
/* Check if current dn is valid */
if($ldap!=NULL){
$ldap->cd($dn);
}
/* Append the rest */
- $ret[] = $keep.$dn;
+ $test = $keep.$dn;
+ if($called && !empty($test)){
+ $ret[] = $keep.$dn;
+ }
$ret['count'] = count($ret) - 1;
$diff = array_diff($ret,$Diff);