diff --git a/inc/settings.php b/inc/settings.php index c9c6a55..49a00b9 100644 --- a/inc/settings.php +++ b/inc/settings.php @@ -209,7 +209,14 @@ final class Settings { } } if (strstr($message, "Base table or view not found:")) { - $settings->redirect("error/tables-not-found.php"); + try { + $st = $settings->conn->query("SELECT * FROM " . $settings->table['bans'] . " LIMIT 1;"); + $st->fetch(); + $st->closeCursor(); + } catch (PDOException $e) { + $settings->redirect("error/tables-not-found.php"); + } + $settings->redirect("error/outdated-plugin.php"); } if (strstr($message, "Unknown column")) { $settings->redirect("error/outdated-plugin.php");