diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php index c7767e5d..6a4de6af 100644 --- a/adminer/indexes.inc.php +++ b/adminer/indexes.inc.php @@ -72,18 +72,19 @@ if ($_POST) { ?>
- +
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) - 1 ? "indexesAddRow(this);" : 1)) . "\n"; + echo "
" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow(this);" : 1)) . ""; ksort($index["columns"]); - foreach ($index["columns"] as $i => $column) { + $i = 1; + foreach ($index["columns"] as $column) { echo "" . html_select("indexes[$j][columns][$i]", array(-1 => "") + $fields, $column, ($i == count($index["columns"]) ? "indexesAddColumn(this);" : 1)); - echo " \n"; //! hide for non-MySQL drivers, add ASC|DESC + echo " "; //! hide for non-MySQL drivers, add ASC|DESC + $i++; } - echo "\n"; $j++; } ?>