mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 00:34:03 +02:00
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…
x
Reference in New Issue
Block a user