From: Peter Knut Date: Wed, 3 May 2023 14:02:42 +0000 (+0200) Subject: Fix undefined $sql variable X-Git-Tag: v4.16.0~125 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=501234c2d13b051798b409a30e89c3925d65e56c;p=adminer.git Fix undefined $sql variable --- diff --git a/adminer/script.inc.php b/adminer/script.inc.php index f5461bc2..4eaad40f 100644 --- a/adminer/script.inc.php +++ b/adminer/script.inc.php @@ -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 ));