Php notices removed form error logoing to avoid flood from @ constructs.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 20 Jun 2009 12:13:48 +0000 (12:13 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 20 Jun 2009 12:13:48 +0000 (12:13 +0000)
includes/errors.inc

index 4bf5463f669c98ca607542a680d237edba21972f..83ccb6c0dae506594e377036eb08e1c268dd97d5 100644 (file)
@@ -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");