From d9fd8da37ec8137bc23059605b8759fd4823c531 Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Mon, 11 Jun 2012 06:32:39 -0400 Subject: [PATCH] [feature/postgresql-fulltext-search] Fix version comparison for 9.0+. PHPBB3-9730 --- phpBB/includes/search/fulltext_postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 3f0d018631..1d92a16eda 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -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; }