Code

Remove debug output from gosa_ldap_explode_dn.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Nov 2006 06:52:11 +0000 (06:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 30 Nov 2006 06:52:11 +0000 (06:52 +0000)
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

include/functions.inc
include/functions_FAI.inc

index 58942bd7852960ba30c399e363dcd9b0a1ce0264..b1deb986ec57f75b944bff664fe34e9233818f49 100644 (file)
@@ -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);
 }
 
index 781f66c93386b5cc222b33aa0502d6f335e9bad7..9fc2270b88af2c63d9cc286fe2db494bfb9f92e2 100644 (file)
@@ -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)){