From 74cd069d9c176c145d8db1543c6f59fd7f389232 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 5 Nov 2009 07:09:26 +0000 Subject: [PATCH] We better show the data trace only in debug_ldap mode git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14750 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index e888b8381..743d15bbb 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -574,10 +574,8 @@ class LDAP{ $str = " - attribute: ".preg_replace("/:.*$/","",$this->get_additional_error()).""; } - 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); } -- 2.30.2