Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-01-28 09:20:21 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-01-28 09:20:21 +0300
commit05c5ba753cd9f67019aa3f3ad125cc6be4296550 (patch)
tree5c10e1e4c6170a2585ff421c10f23c219fe88fd2 /tbl_indexes.php
parente15bcf8944433090e2ffc61f4b8fd20e5a1bfa6c (diff)
Distinguish between index type and index choice
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'tbl_indexes.php')
-rw-r--r--tbl_indexes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbl_indexes.php b/tbl_indexes.php
index 52d0348a78..f083edad71 100644
--- a/tbl_indexes.php
+++ b/tbl_indexes.php
@@ -42,7 +42,7 @@ $form_params = PMA_getFormParameters($db, $table);
if (isset($_REQUEST['create_edit_table'])) {
$fields = json_decode($_REQUEST['columns'], true);
$index_params = array(
- 'Non_unique' => ($_REQUEST['index']['Index_type'] == 'UNIQUE') ? '0' : '1'
+ 'Non_unique' => ($_REQUEST['index']['Index_choice'] == 'UNIQUE') ? '0' : '1'
);
$index->set($index_params);
$add_fields = count($fields);