Use the error reporting defined in config.conf

This commit is contained in:
FusionPBX 2022-10-13 16:23:20 -06:00 committed by GitHub
parent 0a25c48b5d
commit 3e8ea2015f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -41,10 +41,10 @@
define("PROJECT_PATH", $conf['project.path']);
//set the error reporting
ini_set('display_errors', '1');
//error_reporting($conf['error.reporting']);
error_reporting (E_ALL ^ E_NOTICE); // hide notices
if (isset($conf['error.reporting'])) {
ini_set('display_errors', '1');
error_reporting($conf['error.reporting']);
}
//get the database connection settings
//$db_type = $settings['database']['type'];