Convert mysqli_fetch_assoc to mysqli_fetch_row in setup for table import

This commit is contained in:
johnnyq 2026-01-14 18:02:11 -05:00
parent df280cd574
commit 7ab406b3f5
1 changed files with 1 additions and 1 deletions

View File

@ -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] . "`");
}
}