]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Fix number of tables check
authorValerie Pond <redacted>
Fri, 7 Apr 2023 05:08:36 +0000 (06:08 +0100)
committerValerie Pond <redacted>
Fri, 7 Apr 2023 05:08:36 +0000 (06:08 +0100)
plugins/sql_auth/sql_auth.php

index bf911eb96b46848c3d7c560416dc0e7dffa2d299..eac438ec751b5d6dd940bb5d2d0492f502616006 100644 (file)
@@ -110,7 +110,7 @@ class sql_auth
                        return;
                $conn = sqlnew();
                $stmt = $conn->query("SHOW TABLES LIKE '".SQL_PREFIX."%'");
-               if ($stmt->rowCount() < 5)
+               if ($stmt->rowCount() < 4)
                {
                        header("Location: ".BASE_URL."plugins/sql_auth/setup.php");
                        die();