mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Redirect to outdated-plugin instead of tables-not-found if bans table exists
This commit is contained in:
parent
13b298bce7
commit
813b72d2b0
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user