X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ferrors.inc;h=8b02f299148413e691d530427361fcc3a0567fef;hb=f911dbdc3b4be63c51c25cdf98cc0b7c2e54dffb;hp=9b40fa9f887e4c08c2b25f758319463e59d0d12f;hpb=90b3d069d96b99671af51726e2953352738abb75;p=fa-stable.git diff --git a/includes/errors.inc b/includes/errors.inc index 9b40fa9f..8b02f299 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -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;