Abort on parse error of config.default.ini.php (#714)

If there is an error parsing the default config file, then abort.
This commit is contained in:
Joe Digilio 2018-06-15 14:02:06 -05:00 committed by LogMANOriginal
parent 4c5013bc82
commit 50924b9213

View file

@ -14,6 +14,8 @@ if(!file_exists('config.default.ini.php'))
die('The default configuration file "config.default.ini.php" is missing!');
$config = parse_ini_file('config.default.ini.php', true, INI_SCANNER_TYPED);
if(!$config)
die('Error parsing config.default.ini.php');
if(file_exists('config.ini.php')) {
// Replace default configuration with custom settings