summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a4267c)
raw | patch | inline | side by side (parent: 3a4267c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 Nov 2007 11:22:16 +0000 (11:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 23 Nov 2007 11:22:16 +0000 (11:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7868 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions.inc | patch | blob | history | |
include/php_setup.inc | patch | blob | history |
diff --git a/include/functions.inc b/include/functions.inc
index d628de47a0033dcd92f7e7f1376d9a0c7bf9f2f7..57debec9e7eaa3212ae07b4dc727a95c15e02766 100644 (file)
--- a/include/functions.inc
+++ b/include/functions.inc
msg_dialog::display(_("LDAP error:"),$message,ERROR_DIALOG);
#print_red (_("LDAP error:")." $message");
} else {
- msg_dialog::display(sprintf(_("LDAP error in plugin '%s':"),"<i>".$addon."</i>"),$message,ERROR_DIALOG);
- #print_red ("$addon<br><br><b>"._("LDAP error:")."</b> $message");
+ if(!preg_match("/No such object/i",$message)){
+ msg_dialog::display(sprintf(_("LDAP error in plugin '%s':"),"<i>".$addon."</i>"),$message,ERROR_DIALOG);
+#print_red ("$addon<br><br><b>"._("LDAP error:")."</b> $message");
+ }
}
return TRUE;
} else {
diff --git a/include/php_setup.inc b/include/php_setup.inc
index 139f195d92b668dfd7f2445367d8b3af69cf398b..a9afd8377c0fe747598a433392d8168cbc018621 100644 (file)
--- a/include/php_setup.inc
+++ b/include/php_setup.inc
{
global $error_collector,$config, $error_collector_mailto;
- if(@class_exists("log")){
- new log("debug","all",$errfile,array(),"Type:".$errno.", Message:".$errstr.", File:".$errfile.", Line: ".$errline);
- }
-
if(function_exists("gosa_log")){
gosa_log($errno." ".$errstr." ".$errfile." ".$errline);
}
}
}
+ /* Error messages are hidden in GOsa, so we only send them to the logging class and abort here */
if((isset($config->data))){
if((isset($config->data['MAIN']['DISPLAYERRORS']))&&(!preg_match("/^true$/i",$config->data['MAIN']['DISPLAYERRORS']))){
+
/* Write to syslog */
- new log("view","error","",array(),"PHP error: $errstr ($errfile, line $errline)");
+ if(!preg_match("/No such object/",$message)){
+ new log("view","error","",array(),"PHP error: $errstr ($errfile, line $errline)");
+ }
return;
}
}
+
+ /* Send all errors to logging class, except "Ldap : No such object" messages*/
+ if(@class_exists("log") && !preg_match("/No such object/",$message)){
+ new log("debug","all",$errfile,array(),"Type:".$errno.", Message:".$errstr.", File:".$errfile.", Line: ".$errline);
+ }
+
/* Create header as needed */
if ($error_collector == ""){