-
- $ignored = E_USER_WARNING|E_USER_ERROR|E_USER_NOTICE;
- // don't log notices hidden with @ unless in debug mode
- if (!$go_debug) $ignored |= E_NOTICE;
-
- if (!($errno & $ignored))
- error_log(
- user_company().':'.$_SESSION["wa_current_user"]->loginname.':'.
- basename($file).":$line: $errstr");
- }
+ else if($errno&~E_NOTICE)// log all not displayed messages
+ error_log(user_company() . ':' . $_SESSION["wa_current_user"]->loginname.':'
+ . basename($file) .":$line: $errstr");
+