From eb2a468a0917f1aac6af2823aa20bfb4c0861b01 Mon Sep 17 00:00:00 2001 From: Techan Date: Mon, 31 Mar 2014 21:12:04 +0200 Subject: [PATCH] Improve protection from displaying errors to visitors --- inc/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index d09a3705..efc0594b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -215,6 +215,8 @@ function loadConfig() { error_reporting(E_ALL); ini_set('display_errors', true); ini_set('html_errors', false); + } else { + ini_set('display_errors', false); } // Keep the original address to properly comply with other board configurations