From: hickert Date: Thu, 5 Nov 2009 07:09:26 +0000 (+0000) Subject: We better show the data trace only in debug_ldap mode X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=74cd069d9c176c145d8db1543c6f59fd7f389232;p=gosa.git 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 --- 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); }