Fixed a bug during installation
It set the "option" on the dbconfig and saved it to the config file as a string. Then it failed to load the file.
This commit is contained in:
@ -32,10 +32,8 @@ class DatabaseUtils {
|
||||
$config = $this->configUtils->getDatabaseConfig();
|
||||
|
||||
// Enable DB exceptions instead of silent fails
|
||||
$config += [
|
||||
"option" => [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
]
|
||||
$config["config"] = [
|
||||
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
|
||||
];
|
||||
|
||||
$db = new Medoo($config);
|
||||
|
Reference in New Issue
Block a user