]> git.joonet.de Git - adminer.git/commitdiff
Fix undefined $sql variable
authorPeter Knut <peter@pematon.com>
Wed, 3 May 2023 14:02:42 +0000 (16:02 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 10:16:34 +0000 (11:16 +0100)
adminer/script.inc.php

index f5461bc288031b531beac872e44af20e83cb9bd5..4eaad40f32453eb7f2ef94ab0316ef70ef6e6422 100644 (file)
@@ -12,7 +12,7 @@ if ($_GET["script"] == "db") {
                        foreach ($sums + array("Auto_increment" => 0, "Rows" => 0) as $key => $val) {
                                if ($table_status[$key] != "") {
                                        $val = format_number($table_status[$key]);
-                                       json_row("$key-$name", ($key == "Rows" && $val && $table_status["Engine"] == ($sql == "pgsql" ? "table" : "InnoDB")
+                                       json_row("$key-$name", ($key == "Rows" && $val && $table_status["Engine"] == ($jush == "pgsql" ? "table" : "InnoDB")
                                                ? "~ $val"
                                                : $val
                                        ));