1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-25 20:45:16 +02:00

[feature/postgresql-fulltext-search] Fix version comparison for 9.0+.

PHPBB3-9730
This commit is contained in:
Oleg Pudeyev
2012-06-11 06:32:39 -04:00
committed by Dhruv Goel
parent 26bfeb0016
commit d9fd8da37e

View File

@ -55,7 +55,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
if ($db->sql_layer == 'postgres')
{
$pgsql_version = explode('.', substr($db->sql_server_info(), 10));
if ($pgsql_version[0] >= 8 && $pgsql_version[1] >= 3)
if ($pgsql_version[0] >= 9 || $pgsql_version[0] == 8 && $pgsql_version[1] >= 3)
{
$this->tsearch_builtin = true;
}