diff options
author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-06-10 17:13:03 +0530 |
---|---|---|
committer | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-07-05 21:11:28 +0530 |
commit | 30508b406b16d94218cf23b8720a942fd263b207 (patch) | |
tree | 7e80c640dbb3b9cfd65b8714fd09e6e914e4f68d /phpBB/includes | |
parent | d1a49e01cef336a44700134dc35abc88a485da94 (diff) | |
download | forums-30508b406b16d94218cf23b8720a942fd263b207.tar forums-30508b406b16d94218cf23b8720a942fd263b207.tar.gz forums-30508b406b16d94218cf23b8720a942fd263b207.tar.bz2 forums-30508b406b16d94218cf23b8720a942fd263b207.tar.xz forums-30508b406b16d94218cf23b8720a942fd263b207.zip |
[feature/postgresql-fulltext-search] assign empty stats
Blank array is assigned to stats incase pgsql fulltext
search backend is not compatible
PHPBB3-9730
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 893c87549a..00818e3353 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -816,6 +816,12 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base { global $db, $config; + if($db->sql_layer != 'postgres') + { + $this->stats = array(); + return; + } + $sql = "SELECT c2.relname, pg_catalog.pg_get_indexdef(i.indexrelid, 0, true) AS indexdef FROM pg_catalog.pg_class c1, pg_catalog.pg_index i, pg_catalog.pg_class c2 WHERE c1.relname = '" . POSTS_TABLE . "' |