diff --git a/libraries/structure.lib.php b/libraries/structure.lib.php
index 712f988366..a000091f17 100644
--- a/libraries/structure.lib.php
+++ b/libraries/structure.lib.php
@@ -1836,28 +1836,26 @@ function PMA_getHtmlDivsForStructureActionsDropdown($class, $isActionEnabled,
$common_functions = PMA_CommonFunctions::getInstance();
$html_output = '
';
@@ -1917,17 +1915,17 @@ function PMA_getHtmlForMoreOptionInTableStructure($rownum, $primary_enabled,
if (!PMA_DRIZZLE) {
$html_output .= PMA_getHtmlDivsForStructureActionsDropdown(
'action_spatial replace_in_more',
- $fulltext_enabled, $url_query, $row,
+ $spatial_enabled, $url_query, $row,
$hidden_titles['Spatial'],
- $hidden_titles['NoSpatial'], false, 'ADD FULLTEXT',
+ $hidden_titles['NoSpatial'], false, 'ADD SPATIAL',
__('An index has been added on %s'), false
);
$html_output .= PMA_getHtmlDivsForStructureActionsDropdown(
'action_fulltext replace_in_more',
- $spatial_enabled, $url_query, $row,
+ $fulltext_enabled, $url_query, $row,
$hidden_titles['IdxFulltext'],
- $hidden_titles['NoIdxFulltext'], false, 'ADD SPATIAL',
+ $hidden_titles['NoIdxFulltext'], false, 'ADD FULLTEXT',
__('An index has been added on %s'), false
);