X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ferrors.inc;fp=includes%2Ferrors.inc;h=8b02f299148413e691d530427361fcc3a0567fef;hb=53d942f2a0d20cce5e9c409c6485867ce0869e4d;hp=9b40fa9f887e4c08c2b25f758319463e59d0d12f;hpb=6a4d8e6c1e92ff1b8fc5abb3fae76fb1c1968550;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;