diff options
-rw-r--r-- | lib/init.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/init.php b/lib/init.php index d855be1d..e65c4c40 100644 --- a/lib/init.php +++ b/lib/init.php @@ -263,4 +263,9 @@ if (!preg_match('/update\.php/', $_SERVER['PHP_SELF'])) { } // For the XMLRPC stuff $GLOBALS['xmlrpc_internalencoding'] = Config::get('site_charset'); + +// If don't use Debug, no error report +if (Config::get('debug') == 'false' || Config::get('debug') == NULL) { + error_reporting(0); +} ?> |