aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 3d5381e2bc..74ffa08a81 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -48,6 +48,19 @@ class fulltext_mysql extends search_backend
return $user->lang['FULLTEXT_MYSQL_INCOMPATIBLE_VERSION'];
}
+ $result = $db->sql_query('SHOW TABLE STATUS LIKE \'' . POSTS_TABLE . '\'');
+ $engine = $db->sql_fetchfield('Engine', 0, $result);
+ if (!$engine)
+ {
+ $engine = $db->sql_fetchfield('Type', 0, $result);
+ }
+ $db->sql_freeresult($result);
+
+ if ($engine != 'MyISAM')
+ {
+ return $user->lang['FULLTEXT_MYSQL_NOT_MYISAM'];
+ }
+
$sql = 'SHOW VARIABLES
LIKE \'ft\_%\'';
$result = $db->sql_query($sql);