mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/postgresql-fulltext-search] Fix version comparison for 9.0+.
PHPBB3-9730
This commit is contained in:
parent
26bfeb0016
commit
d9fd8da37e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue