mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +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:
@@ -667,14 +667,9 @@ class phpbb_search_fulltext_sphinx
|
|||||||
*/
|
*/
|
||||||
function index_created($allow_new_files = true)
|
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;
|
$created = false;
|
||||||
|
|
||||||
if ($row)
|
if ($this->db_tools->sql_table_exists(SPHINX_TABLE))
|
||||||
{
|
{
|
||||||
$created = true;
|
$created = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user