diff options
author | David M <davidmj@users.sourceforge.net> | 2006-12-23 18:49:38 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2006-12-23 18:49:38 +0000 |
commit | c4a7d130556f4422a95ebd5f8214d94f1a1325b1 (patch) | |
tree | 269183bc18ec07d322e486926e3d7ee7ca70083d /phpBB/includes/search/fulltext_mysql.php | |
parent | 0d502f3b07df4c198688d87a08bd6f785db77a1d (diff) | |
download | forums-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.php | 4 |
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'; } |