From d6af193b53ac4a3b9dff78254f4da9f4cd5f9337 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 23 Apr 2006 13:10:34 +0000 Subject: [PATCH] - properly check the Comment column on older MySQL versions [Bug #1637] git-svn-id: file:///svn/phpbb/trunk@5837 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/search/fulltext_mysql.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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') {