From: hickert Date: Fri, 3 Nov 2006 08:40:04 +0000 (+0000) Subject: Updated gosa_ldap_explode_dn. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6568bb78a8cfe8c889da52bd24afea5f8eb740cf;p=gosa.git Updated gosa_ldap_explode_dn. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5005 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 376d19d86..24738534a 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -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)){