mirror of
https://github.com/xevidos/codiad.git
synced 2025-01-03 11:42:12 +01:00
Fixed syntax error on install/process.php and added sqlite option as database
This commit is contained in:
parent
040eb58ae0
commit
cc599a1036
1 changed files with 3 additions and 2 deletions
|
@ -98,11 +98,12 @@ if ( ! ( defined( "DBHOST" ) && defined( "DBNAME" ) && defined( "DBUSER" ) && de
|
|||
$aValidDBType = [
|
||||
'mysql'
|
||||
,'postgresql'
|
||||
,'sqlite'
|
||||
];
|
||||
|
||||
//Is selected database type valid?
|
||||
if(!in_array($dbtype,$aValidDBType)){
|
||||
die( "Invalid database. Please select one of ".implode(", "$aValidDBType)."." );
|
||||
die( "Invalid database. Please select one of ".implode(", ",$aValidDBType)."." );
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -405,4 +406,4 @@ define("WSURL", BASE_URL . "/workspace");
|
|||
|
||||
saveFile( $config, $config_data );
|
||||
echo( "success" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue