Code

We better show the data trace only in debug_ldap mode
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Nov 2009 07:09:26 +0000 (07:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Nov 2009 07:09:26 +0000 (07:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14750 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_ldap.inc

index e888b8381b662a9fb05abe232eeda218c1045e02..743d15bbb991d7ab08fb8e673959be51bb5bf7dc 100644 (file)
@@ -574,10 +574,8 @@ class LDAP{
       $str = " - <b>attribute: ".preg_replace("/:.*$/","",$this->get_additional_error())."</b>";
     } 
 
-    if(is_object($config) && $config->get_cfg_value("displayerrors") == "true" && function_exists("print_a")){
-      $str .= print_a($attrs,true);
-    }
-    
+    @DEBUG(DEBUG_LDAP,__LINE__,__FUNCTION__,__FILE__,$attrs,"Erroneous data");
+
     return($str);
   }