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:
Johannes Meyer 2015-07-02 17:02:12 +02:00
parent 49d4be79ef
commit 3aae1acc97
1 changed files with 1 additions and 1 deletions

View File

@ -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);