From 6568bb78a8cfe8c889da52bd24afea5f8eb740cf Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 3 Nov 2006 08:40:04 +0000 Subject: [PATCH] Updated gosa_ldap_explode_dn. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5005 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 5 +++++ 1 file changed, 5 insertions(+) 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)){ -- 2.30.2