diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php
index 090d86af..d5334c6f 100644
--- a/adminer/indexes.inc.php
+++ b/adminer/indexes.inc.php
@@ -84,9 +84,9 @@ foreach ($row["indexes"] as $index) {
echo "
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow(this);" : 1)) . " | ";
ksort($index["columns"]);
$i = 1;
- foreach ($index["columns"] as $column) {
+ foreach ($index["columns"] as $key => $column) {
echo "" . html_select("indexes[$j][columns][$i]", array(-1 => "") + $fields, $column, ($i == count($index["columns"]) ? "indexesAddColumn(this);" : 1));
- echo " "; //! hide for non-MySQL drivers, add ASC|DESC
+ echo " "; //! hide for non-MySQL drivers, add ASC|DESC
$i++;
}
$j++;
|