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…
Reference in New Issue