diff --git a/adminer/table.inc.php b/adminer/table.inc.php index 5b576118..9f2f9afb 100644 --- a/adminer/table.inc.php +++ b/adminer/table.inc.php @@ -25,13 +25,13 @@ if ($fields) { $indexes = indexes($TABLE); if ($indexes) { echo "\n"; - foreach ($indexes as $index) { + foreach ($indexes as $name => $index) { ksort($index["columns"]); // enforce correct columns order $print = array(); foreach ($index["columns"] as $key => $val) { $print[] = "" . h($val) . "" . ($index["lengths"][$key] ? "(" . $index["lengths"][$key] . ")" : ""); } - echo "
$index[type]" . implode(", ", $print) . "\n"; + echo "
$index[type]" . implode(", ", $print) . "\n"; } echo "
\n"; }