From: hickert Date: Thu, 30 Nov 2006 06:52:11 +0000 (+0000) Subject: Remove debug output from gosa_ldap_explode_dn. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf79f6e6ff496821a54dbcee22f7ec6823591f01;p=gosa.git Remove debug output from gosa_ldap_explode_dn. It works as expected, and can replace ldap_explode_dn. gosa_ldap_explode_dn is a remake of ldap_explode_dn without character encoding problems. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5258 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 58942bd78..b1deb986e 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2081,8 +2081,6 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false) $ldap = $config->get_ldap_link(); } - $Diff = ldap_explode_dn($dn,0); - /* Lets start */ $called = false; while(preg_match("/,/",$dn) && $next && $cnt < $max){ @@ -2124,10 +2122,6 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false) } $ret['count'] = count($ret) - 1; - $diff = array_diff($ret,$Diff); - if($diff){ - print_a(array("Diff" => $diff,"OLD" => $Diff,"NEW"=> $ret,"DEBUG"=> debug_backtrace())); - } return($ret); } diff --git a/include/functions_FAI.inc b/include/functions_FAI.inc index 781f66c93..9fc2270b8 100644 --- a/include/functions_FAI.inc +++ b/include/functions_FAI.inc @@ -575,7 +575,6 @@ function get_previous_releases_of_this_release($dn,$flat) $ret = array(); /* Explode dns into pieces, to be able to build parent dns */ -# $dns_to_check = gosa_ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$dn),0); $dns_to_check = gosa_ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$dn)); if(!is_array($dns_to_check)){ @@ -681,7 +680,6 @@ function get_release_dn($Current_DN) $ldap->cd($config->current['BASE']); /* Split dn into pices */ -# $dns_to_check = gosa_ldap_explode_dn(str_ireplace(",".$config->current['BASE'],"",$Current_DN),0); $dns_to_check = gosa_ldap_explode_dn(preg_replace("/".normalizePreg(",".$config->current['BASE'])."/i","",$Current_DN)); if(!is_array($dns_to_check)){