diff options
Diffstat (limited to 'phpBB/phpbb/search/fulltext_native.php')
-rw-r--r-- | phpBB/phpbb/search/fulltext_native.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/phpBB/phpbb/search/fulltext_native.php b/phpBB/phpbb/search/fulltext_native.php index 516316dc54..3a74955a18 100644 --- a/phpBB/phpbb/search/fulltext_native.php +++ b/phpBB/phpbb/search/fulltext_native.php @@ -1478,7 +1478,10 @@ class fulltext_native extends \phpbb\search\base $this->db->sql_return_on_error(false); } unset($new_words, $sql_ary); - $this->db->sql_transaction('commit'); + } + else + { + $this->db->sql_transaction('begin'); } // now update the search match table, remove links to removed words and add links to new words @@ -1510,11 +1513,6 @@ class fulltext_native extends \phpbb\search\base } } - if (empty($unique_add_words)) - { - $this->db->sql_transaction('begin'); - } - $this->db->sql_return_on_error(true); foreach ($words['add'] as $word_in => $word_ary) { |