diff options
-rw-r--r-- | phpBB/includes/search/fulltext_mysql.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php index 45597376fe..9b43b4d43c 100644 --- a/phpBB/includes/search/fulltext_mysql.php +++ b/phpBB/includes/search/fulltext_mysql.php @@ -726,7 +726,10 @@ class fulltext_mysql extends search_backend while ($row = $db->sql_fetchrow($result)) { - if ($row['Index_type'] == 'FULLTEXT' || $row['Comment'] == 'FULLTEXT') + // deal with older MySQL versions which didn't use Index_type + $index_type = (isset($row['Index_type'])) ? $row['Index_type'] : $row['Comment']; + + if ($index_type == 'FULLTEXT') { if ($row['Column_name'] == 'post_text') { |