X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ferrors.inc;h=bfa213d5514d96ab1ac59e87e22fa8ffcc2619ba;hb=6989100b74130784a524b1f941b3ae73f30f663a;hp=566d9f49eddbcdec19e5e1fb0cfecb1a2f95df55;hpb=2383d33373d6ddec06906658a0ed6398077c1147;p=fa-stable.git
diff --git a/includes/errors.inc b/includes/errors.inc
index 566d9f49..bfa213d5 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);
@@ -153,8 +162,7 @@ function check_db_error($msg, $sql_statement, $exit_if_error=true, $rollback_if_
if ($exit_if_error)
{
- echo "
";
- exit;
+ end_page(); exit;
}
}
return $db_error;