From 08d51f2ecfb569ef93f3149227e5e5d48f3b464f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 3 Dec 2010 16:13:01 +0100 Subject: [PATCH] Fix index length --- adminer/indexes.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++;