Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't overwrite variable

  • Loading branch information...
commit 9bc9b9fa3a580f92d9db6307d1c3e8813a6ebb99 1 parent c918bc8
@vrana authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 adminer/select.inc.php
View
6 adminer/select.inc.php
@@ -246,13 +246,13 @@
$names = array();
$functions = array();
reset($select);
- $order = 1;
+ $rank = 1;
foreach ($rows[0] as $key => $val) {
$val = $_GET["columns"][key($select)];
$field = $fields[$select ? $val["col"] : $key];
- $name = ($field ? $adminer->fieldName($field, $order) : "*");
+ $name = ($field ? $adminer->fieldName($field, $rank) : "*");
if ($name != "") {
- $order++;
+ $rank++;
$names[$key] = $name;
echo '<th><a href="' . h(remove_from_uri('(order|desc)[^=]*|page') . '&order%5B0%5D=' . urlencode($key) . ($_GET["order"][0] == $key && !$_GET["desc"][0] ? '&desc%5B0%5D=1' : '')) . '">' . apply_sql_function($val["fun"], $name) . "</a>"; //! columns looking like functions
}
Please sign in to comment.
Something went wrong with that request. Please try again.