Code

Updated gosa_ldap_explode_dn.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Nov 2006 08:40:04 +0000 (08:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Nov 2006 08:40:04 +0000 (08:40 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5005 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 376d19d86012519723c7714527d49328233c925d..24738534a62faa36c128c4e3a901f8287c3febce 100644 (file)
@@ -2136,6 +2136,11 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false)
     }
   }
 
+  /* No dn was posted */
+  if($cnt == 0 && !empty($dn)){
+    $ret[] = $dn;
+  }
+
   /* Append the rest */
   $test = $keep.$dn;
   if($called && !empty($test)){