Suppressed strict warnings in reporting module.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 19 Dec 2010 10:38:33 +0000 (10:38 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 19 Dec 2010 10:38:33 +0000 (10:38 +0000)
includes/errors.inc

index f55951cf4652c1cc69d4f8f0a2bb0c070fc71626..7654ba70e676320c24f1ea088bfc83293f97f814 100644 (file)
@@ -21,7 +21,10 @@ function error_handler($errno, $errstr, $file, $line) {
 
        // 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');
+       $excluded_warnings = array(
+               'html_entity_decode', 'htmlspecialchars',       // nevermind encodings, special chars are processed anyway
+               'should be compatible with that'                        // ignore cpdf/frontreport wrapper warnings
+       );
        foreach($excluded_warnings as $ref) {
                if (strpos($errstr, $ref) !== false) {
                        return true;