aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-07-12 04:13:34 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-07-19 23:01:46 +0530
commit13c451ca2e9a6717a8a98943ba022a6f41dcdd9c (patch)
treecc98affc028cf9eae6e1f43ab432dd2d1cb85d2f
parentf40da411c389cb7718d31f1ee20f8487f25969f0 (diff)
downloadforums-13c451ca2e9a6717a8a98943ba022a6f41dcdd9c.tar
forums-13c451ca2e9a6717a8a98943ba022a6f41dcdd9c.tar.gz
forums-13c451ca2e9a6717a8a98943ba022a6f41dcdd9c.tar.bz2
forums-13c451ca2e9a6717a8a98943ba022a6f41dcdd9c.tar.xz
forums-13c451ca2e9a6717a8a98943ba022a6f41dcdd9c.zip
[feature/sphinx-fulltext-search] use sql_table_exists
Use sql_table_exists( ) method in db_tools to support all database types. PHPBB3-10946
-rw-r--r--phpBB/includes/search/fulltext_sphinx.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/search/fulltext_sphinx.php b/phpBB/includes/search/fulltext_sphinx.php
index 08948803ba..747c22a3ef 100644
--- a/phpBB/includes/search/fulltext_sphinx.php
+++ b/phpBB/includes/search/fulltext_sphinx.php
@@ -667,14 +667,9 @@ class phpbb_search_fulltext_sphinx
*/
function index_created($allow_new_files = true)
{
- $sql = 'SHOW TABLES LIKE \'' . SPHINX_TABLE . '\'';
- $result = $this->db->sql_query($sql);
- $row = $this->db->sql_fetchrow($result);
- $this->db->sql_freeresult($result);
-
$created = false;
- if ($row)
+ if ($this->db_tools->sql_table_exists(SPHINX_TABLE))
{
$created = true;
}