mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
WebWizard: Be less error-prone while calling array_search
This commit is contained in:
parent
c32b749701
commit
b8293b1fdd
@ -284,7 +284,7 @@ class WebWizard extends Wizard implements SetupWizard
|
||||
|
||||
try {
|
||||
$db->connectToDb(); // Are we able to login on the database?
|
||||
if (array_search(reset($this->databaseTables), $db->listTables()) === false) {
|
||||
if (array_search(reset($this->databaseTables), $db->listTables(), true) === 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…
x
Reference in New Issue
Block a user