check if $tables is an array
This commit is contained in:
parent
d09ec36751
commit
f0c0bd5251
|
@ -28,9 +28,11 @@ class InnoDB extends BasicEmitter implements \OC\RepairStep {
|
||||||
}
|
}
|
||||||
|
|
||||||
$tables = $this->getAllMyIsamTables($connection);
|
$tables = $this->getAllMyIsamTables($connection);
|
||||||
foreach ($tables as $table) {
|
if (is_array($tables)) {
|
||||||
$connection->exec("ALTER TABLE $table ENGINE=InnoDB;");
|
foreach ($tables as $table) {
|
||||||
$this->emit('\OC\Repair', 'info', array("Fixed $table"));
|
$connection->exec("ALTER TABLE $table ENGINE=InnoDB;");
|
||||||
|
$this->emit('\OC\Repair', 'info', array("Fixed $table"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue