1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-22 02:50:00 +01:00

- properly check the Comment column on older MySQL versions [Bug #1637]

git-svn-id: file:///svn/phpbb/trunk@5837 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Nils Adermann 2006-04-23 13:10:34 +00:00
parent d9576fd70b
commit d6af193b53

View File

@ -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')
{