mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02: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:
@@ -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')
|
||||
{
|
||||
|
Reference in New Issue
Block a user