aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/search/fulltext_mysql.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-12-23 18:49:38 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-12-23 18:49:38 +0000
commitc4a7d130556f4422a95ebd5f8214d94f1a1325b1 (patch)
tree269183bc18ec07d322e486926e3d7ee7ca70083d /phpBB/includes/search/fulltext_mysql.php
parent0d502f3b07df4c198688d87a08bd6f785db77a1d (diff)
downloadforums-c4a7d130556f4422a95ebd5f8214d94f1a1325b1.tar
forums-c4a7d130556f4422a95ebd5f8214d94f1a1325b1.tar.gz
forums-c4a7d130556f4422a95ebd5f8214d94f1a1325b1.tar.bz2
forums-c4a7d130556f4422a95ebd5f8214d94f1a1325b1.tar.xz
forums-c4a7d130556f4422a95ebd5f8214d94f1a1325b1.zip
#6520
git-svn-id: file:///svn/phpbb/trunk@6797 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/search/fulltext_mysql.php')
-rw-r--r--phpBB/includes/search/fulltext_mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/search/fulltext_mysql.php b/phpBB/includes/search/fulltext_mysql.php
index 490b676906..f20962d11d 100644
--- a/phpBB/includes/search/fulltext_mysql.php
+++ b/phpBB/includes/search/fulltext_mysql.php
@@ -643,7 +643,7 @@ class fulltext_mysql extends search_backend
if (!isset($this->stats['post_subject']))
{
- if (version_compare($db->mysql_version, '4.1.3', '>='))
+ if ($db->sql_layer == 'mysqli' || version_compare($db->mysql_version, '4.1.3', '>='))
{
$alter[] = 'MODIFY post_subject varchar(100) COLLATE utf8_unicode_ci DEFAULT \'\' NOT NULL';
}
@@ -652,7 +652,7 @@ class fulltext_mysql extends search_backend
if (!isset($this->stats['post_text']))
{
- if (version_compare($db->mysql_version, '4.1.3', '>='))
+ if ($db->sql_layer == 'mysqli' || version_compare($db->mysql_version, '4.1.3', '>='))
{
$alter[] = 'MODIFY post_text mediumtext COLLATE utf8_unicode_ci NOT NULL';
}