From d1158e1df9c00f5d166e781a2954731b5a03574b Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 20 Jun 2009 12:13:48 +0000 Subject: [PATCH] Php notices removed form error logoing to avoid flood from @ constructs. --- includes/errors.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/errors.inc b/includes/errors.inc index 4bf5463..83ccb6c 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -27,7 +27,7 @@ function error_handler($errno, $errstr, $file, $line) { // error_reporting==0 when messages are set off with @ if ($errno & error_reporting()) $messages[] = array($errno, $errstr, $file, $line); - else // log all not displayed messages + else if($errno&~E_NOTICE)// log all not displayed messages error_log(user_company() . ':' . $_SESSION["wa_current_user"]->loginname.':' . basename($file) .":$line: $errstr"); -- 2.30.2