diff options
author | Nils Adermann <naderman@naderman.de> | 2006-04-23 13:10:34 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-04-23 13:10:34 +0000 |
commit | d6af193b53ac4a3b9dff78254f4da9f4cd5f9337 (patch) | |
tree | 0ad920a0163e7c458e0031db3400a429ca2031a6 /phpBB/includes/search | |
parent | d9576fd70ba9f60c99a2ece5e520b309a86f7362 (diff) | |
download | forums-d6af193b53ac4a3b9dff78254f4da9f4cd5f9337.tar forums-d6af193b53ac4a3b9dff78254f4da9f4cd5f9337.tar.gz forums-d6af193b53ac4a3b9dff78254f4da9f4cd5f9337.tar.bz2 forums-d6af193b53ac4a3b9dff78254f4da9f4cd5f9337.tar.xz forums-d6af193b53ac4a3b9dff78254f4da9f4cd5f9337.zip |
- properly check the Comment column on older MySQL versions [Bug #1637]
git-svn-id: file:///svn/phpbb/trunk@5837 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search')
-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') { |