diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index c9b44ae1..d400f26f 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -1024,7 +1024,6 @@ if (!defined("DRIVER")) { return $connection->result("SELECT @@max_connections"); } - $id_name = "Id"; $jush = "sql"; ///< @var string JUSH identifier $types = array(); ///< @var array ($type => $maximum_unsigned_length, ...) $structured_types = array(); ///< @var array ($description => array($type, ...), ...) diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index 87b69b2f..eb59bd83 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -643,7 +643,6 @@ AND typelem = 0" return $connection->result("SHOW max_connections"); } - $id_name = "pid"; $jush = "pgsql"; $types = array(); $structured_types = array(); diff --git a/adminer/processlist.inc.php b/adminer/processlist.inc.php index d798f8d8..6ddeb7bc 100644 --- a/adminer/processlist.inc.php +++ b/adminer/processlist.inc.php @@ -30,7 +30,7 @@ foreach (process_list() as $i => $row) { } echo "\n"; } - echo "" . (support("kill") ? "" . checkbox("kill[]", $row[$id_name], 0) : ""); + echo "" . (support("kill") ? "" . checkbox("kill[]", $row[$jush == "sql" ? "Id" : "pid"], 0) : ""); foreach ($row as $key => $val) { echo "" . ( ($jush == "sql" && $key == "Info" && preg_match("~Query|Killed~", $row["Command"]) && $val != "") ||