mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +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 {
|
try {
|
||||||
$db->connectToDb(); // Are we able to login on the database?
|
$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
|
// In case the database schema does not yet exist the
|
||||||
// user needs the privileges to setup the database
|
// user needs the privileges to setup the database
|
||||||
$skip = $db->checkPrivileges($this->databaseSetupPrivileges, $this->databaseTables);
|
$skip = $db->checkPrivileges($this->databaseSetupPrivileges, $this->databaseTables);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user