From df16f85c6aeface979a65982197146d67dfdb630 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Wed, 31 Dec 2014 12:55:54 +0100 Subject: [PATCH] Fixed error handling (logged in debug instead of production mode). --- includes/errors.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/errors.inc b/includes/errors.inc index 0e8b2578..56574f32 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -196,7 +196,7 @@ function display_db_error($msg, $sql_statement=null, $exit=true) } $str .= "

"; - if ($go_debug) + if (!$go_debug) error_log($str); else { if($msg) -- 2.30.2