From 710dcc8d186c684dd75649e99035b920af96b6d5 Mon Sep 17 00:00:00 2001 From: Oldperl <44996956+oldperl@users.noreply.github.com> Date: Mon, 7 Oct 2019 13:15:41 +0000 Subject: [PATCH] code syntax; hint: use local config file to change values in config files for testing purpose --- data/config/production/config.misc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data/config/production/config.misc.php b/data/config/production/config.misc.php index 4f176d9..d06dce2 100644 --- a/data/config/production/config.misc.php +++ b/data/config/production/config.misc.php @@ -139,7 +139,7 @@ $cfg['native_i18n'] = false; */ /* Don't display errors */ -@ini_set("display_errors", true); +@ini_set("display_errors", false); /* Log errors to a file */ @ini_set("log_errors", true); @@ -156,8 +156,7 @@ if ($cfg["develop"]["show_errors"] && $_SERVER['SERVER_NAME'] == "local.dceserve } else { if (version_compare(PHP_VERSION, '5.3.0', '<')) { // remove unknown deprecated for PHP < 5.3 error_reporting(E_ALL ^ E_NOTICE); - } else - if (version_compare(PHP_VERSION, '7.0.0', '>=')) { + } else if (version_compare(PHP_VERSION, '7.0.0', '>=')) { error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_WARNING); } else if (version_compare(PHP_VERSION, '5.4.0', '>=')) { error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_STRICT);