Fix exception in case the database access credentials are invalid

refs #7163
This commit is contained in:
Johannes Meyer 2014-10-01 15:44:43 +02:00
parent 3a11182bf0
commit 464fefa578
1 changed files with 6 additions and 2 deletions

View File

@ -130,8 +130,12 @@ class WebSetup extends Wizard implements SetupWizard
$skip = true;
}
} catch (PDOException $e) {
try {
$db->connectToHost();
$skip = $db->checkPrivileges($this->databaseSetupPrivileges);
} catch (PDOException $e) {
// skip should already be false, nothing to do
}
}
} else {
$skip = true;