mirror of
https://github.com/itflow-org/itflow
synced 2026-03-25 14:55:38 +00:00
Convert mysqli_fetch_assoc to mysqli_fetch_row in setup for table import
This commit is contained in:
@@ -253,7 +253,7 @@ if (isset($_POST['restore'])) {
|
|||||||
mysqli_query($mysqli, "SET FOREIGN_KEY_CHECKS = 0");
|
mysqli_query($mysqli, "SET FOREIGN_KEY_CHECKS = 0");
|
||||||
$tables = mysqli_query($mysqli, "SHOW TABLES");
|
$tables = mysqli_query($mysqli, "SHOW TABLES");
|
||||||
if ($tables) {
|
if ($tables) {
|
||||||
while ($row = mysqli_fetch_assoc($tables)) {
|
while ($row = mysqli_fetch_row($tables)) {
|
||||||
mysqli_query($mysqli, "DROP TABLE IF EXISTS `" . $row[0] . "`");
|
mysqli_query($mysqli, "DROP TABLE IF EXISTS `" . $row[0] . "`");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user