Skip to content
Browse files

Remove global variable

  • Loading branch information...
1 parent 3289eca commit 63f2a041ed70be3ceb234fba684d715555e7551a @vrana committed Feb 28, 2016
Showing with 1 addition and 3 deletions.
  1. +0 −1 adminer/drivers/mysql.inc.php
  2. +0 −1 adminer/drivers/pgsql.inc.php
  3. +1 −1 adminer/processlist.inc.php
View
1 adminer/drivers/mysql.inc.php
@@ -1024,7 +1024,6 @@ function max_connections() {
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, ...), ...)
View
1 adminer/drivers/pgsql.inc.php
@@ -643,7 +643,6 @@ function max_connections() {
return $connection->result("SHOW max_connections");
}
- $id_name = "pid";
$jush = "pgsql";
$types = array();
$structured_types = array();
View
2 adminer/processlist.inc.php
@@ -30,7 +30,7 @@
}
echo "</thead>\n";
}
- echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row[$id_name], 0) : "");
+ echo "<tr" . odd() . ">" . (support("kill") ? "<td>" . checkbox("kill[]", $row[$jush == "sql" ? "Id" : "pid"], 0) : "");
foreach ($row as $key => $val) {
echo "<td>" . (
($jush == "sql" && $key == "Info" && preg_match("~Query|Killed~", $row["Command"]) && $val != "") ||

0 comments on commit 63f2a04

Please sign in to comment.
Something went wrong with that request. Please try again.