Fixed syntax error on install/process.php and added sqlite option as database

This commit is contained in:
alvarenga.milton 2019-04-01 21:48:13 -03:00
parent 040eb58ae0
commit cc599a1036

View File

@ -98,11 +98,12 @@ if ( ! ( defined( "DBHOST" ) && defined( "DBNAME" ) && defined( "DBUSER" ) && de
$aValidDBType = [ $aValidDBType = [
'mysql' 'mysql'
,'postgresql' ,'postgresql'
,'sqlite'
]; ];
//Is selected database type valid? //Is selected database type valid?
if(!in_array($dbtype,$aValidDBType)){ if(!in_array($dbtype,$aValidDBType)){
die( "Invalid database. Please select one of ".implode(", "$aValidDBType)."." ); die( "Invalid database. Please select one of ".implode(", ",$aValidDBType)."." );
} }
try { try {