Fix exception in case the database access credentials are invalid
refs #7163
This commit is contained in:
parent
3a11182bf0
commit
464fefa578
|
@ -130,8 +130,12 @@ class WebSetup extends Wizard implements SetupWizard
|
|||
$skip = true;
|
||||
}
|
||||
} catch (PDOException $e) {
|
||||
$db->connectToHost();
|
||||
$skip = $db->checkPrivileges($this->databaseSetupPrivileges);
|
||||
try {
|
||||
$db->connectToHost();
|
||||
$skip = $db->checkPrivileges($this->databaseSetupPrivileges);
|
||||
} catch (PDOException $e) {
|
||||
// skip should already be false, nothing to do
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$skip = true;
|
||||
|
|
Loading…
Reference in New Issue