X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ferrors.inc;h=68c26488579285aa949d3b777406e85a96612523;hb=2a0f29497517eca1cde8b2832da5761edefb2268;hp=566d9f49eddbcdec19e5e1fb0cfecb1a2f95df55;hpb=2383d33373d6ddec06906658a0ed6398077c1147;p=fa-stable.git diff --git a/includes/errors.inc b/includes/errors.inc index 566d9f49..68c26488 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -19,6 +19,15 @@ $before_box = ''; // temporary container for output html data before error box function error_handler($errno, $errstr, $file, $line) { global $messages, $go_debug; + // skip well known warnings we don't care about. + // Please use restrainedly to not risk loss of important messages + $excluded_warnings = array('html_entity_decode', 'htmlspecialchars'); + foreach($excluded_warnings as $ref) { + if (strpos($errstr, $ref) !== false) { + return true; + } + } + // error_reporting==0 when messages are set off with @ if ($errno & error_reporting()) $messages[] = array($errno, $errstr, $file, $line);