1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-21 06:53:49 +02:00

[feature/sphinx-fulltext-search] use sql_table_exists

Use sql_table_exists( ) method in db_tools to support all database types.

PHPBB3-10946
This commit is contained in:
Dhruv 2012-07-12 04:13:34 +05:30
parent f40da411c3
commit 13c451ca2e

View File

@ -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;
}