Fixed handling of undefined mailboxes when reports are sent via email; supressed...
[fa-stable.git] / includes / errors.inc
index 6f9a243299c391f0f2330145773872d6bfc22cda..08a5e5781f6b6e421e087181b0709df02723b08e 100644 (file)
@@ -76,7 +76,9 @@ 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, @$bt);
+               // suppress duplicated errors
+               if (!in_array(array($errno, $errstr, $file, $line, @$bt), $messages))
+                       $messages[] = array($errno, $errstr, $file, $line, @$bt);
        }
        else if($errno&~E_NOTICE) { // log all not displayed messages 
                $user = @$_SESSION["wa_current_user"]->loginname;