Additional fix to previous commit.
[fa-stable.git] / includes / errors.inc
index e59e14b059294715b172ca9775ca010bd1320d8e..56574f32ab74fb0e862f3b1297046c22bcb76be9 100644 (file)
@@ -62,7 +62,8 @@ function error_handler($errno, $errstr, $file, $line) {
        // Please use restrainedly to not risk loss of important messages
        $excluded_warnings = array(
                'html_entity_decode', 'htmlspecialchars',       // nevermind encodings, special chars are processed anyway
-               'should be compatible with that'                        // ignore cpdf/frontreport wrapper warnings
+               'should be compatible with that',                       // ignore cpdf/frontreport wrapper warnings
+               'mysql extension is deprecated'                         // ignore strict warning in 5.4
        );
        foreach($excluded_warnings as $ref) {
                if (strpos($errstr, $ref) !== false) {
@@ -195,7 +196,7 @@ function display_db_error($msg, $sql_statement=null, $exit=true)
        }
        
        $str .= "<br><br>";
-       if ($go_debug)
+       if (!$go_debug)
                error_log($str);
        else {
                if($msg)