diff options
author | momo-i <momo-i@ampache> | 2008-09-02 05:14:33 +0000 |
---|---|---|
committer | momo-i <momo-i@ampache> | 2008-09-02 05:14:33 +0000 |
commit | 99080e6fc82fea70dc905636cb1b4770566f9a32 (patch) | |
tree | b1d53bb4d3b48f2b287d620f7f6b54b94d8f2b4d /lib/init.php | |
parent | c2e9b311e92f4b1e952f752c5177a92c5704c345 (diff) | |
download | ampache-99080e6fc82fea70dc905636cb1b4770566f9a32.tar.gz ampache-99080e6fc82fea70dc905636cb1b4770566f9a32.tar.bz2 ampache-99080e6fc82fea70dc905636cb1b4770566f9a32.zip |
Updated If don't use debug, no error report
Diffstat (limited to 'lib/init.php')
-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); +} ?> |