From 0bc04da034f8508dcf7c3f315554b4ff624aaa08 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 22 Apr 2015 12:49:31 +0530 Subject: [PATCH] Fix variable name Signed-off-by: Madhura Jayaratne --- libraries/Index.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/Index.class.php b/libraries/Index.class.php index ed7d758583..72057623cf 100644 --- a/libraries/Index.class.php +++ b/libraries/Index.class.php @@ -173,16 +173,16 @@ class PMA_Index { $indexes = array(); foreach (self::getFromTable($table, $schema) as $index) { - if (($types & PMA_Index::PRIMARY) && $index->getChoice() == 'PRIMARY') { + if (($choices & PMA_Index::PRIMARY) && $index->getChoice() == 'PRIMARY') { $indexes[] = $index; } - if (($types & PMA_Index::UNIQUE) && $index->getChoice() == 'UNIQUE') { + if (($choices & PMA_Index::UNIQUE) && $index->getChoice() == 'UNIQUE') { $indexes[] = $index; } - if (($types & PMA_Index::SPATIAL) && $index->getChoice() == 'SPATIAL') { + if (($choices & PMA_Index::SPATIAL) && $index->getChoice() == 'SPATIAL') { $indexes[] = $index; } - if (($types & PMA_Index::FULLTEXT) && $index->getChoice() == 'FULLTEXT') { + if (($choices & PMA_Index::FULLTEXT) && $index->getChoice() == 'FULLTEXT') { $indexes[] = $index; } }