mirror of https://github.com/itflow-org/itflow
Convert mysqli_fetch_assoc to mysqli_fetch_row in setup for table import
This commit is contained in:
parent
df280cd574
commit
7ab406b3f5
|
|
@ -253,7 +253,7 @@ if (isset($_POST['restore'])) {
|
|||
mysqli_query($mysqli, "SET FOREIGN_KEY_CHECKS = 0");
|
||||
$tables = mysqli_query($mysqli, "SHOW TABLES");
|
||||
if ($tables) {
|
||||
while ($row = mysqli_fetch_assoc($tables)) {
|
||||
while ($row = mysqli_fetch_row($tables)) {
|
||||
mysqli_query($mysqli, "DROP TABLE IF EXISTS `" . $row[0] . "`");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue