WebWizard: Validate the db schema correctly
This was being validated successfully no matter whether the schema actually existed or not...
This commit is contained in:
parent
49d4be79ef
commit
3aae1acc97
|
@ -248,7 +248,7 @@ class WebWizard extends Wizard implements SetupWizard
|
|||
|
||||
try {
|
||||
$db->connectToDb(); // Are we able to login on the database?
|
||||
if (array_search(key($this->databaseTables), $db->listTables()) === false) {
|
||||
if (array_search(reset($this->databaseTables), $db->listTables()) === false) {
|
||||
// In case the database schema does not yet exist the
|
||||
// user needs the privileges to setup the database
|
||||
$skip = $db->checkPrivileges($this->databaseSetupPrivileges, $this->databaseTables);
|
||||
|
|
Loading…
Reference in New Issue