1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/15540] Method init

PHPBB3-15540
This commit is contained in:
rubencm
2021-03-22 18:46:58 +01:00
parent 457c750773
commit fd45ce1e91
6 changed files with 66 additions and 56 deletions

View File

@@ -155,7 +155,8 @@ class acp_search
$search = $search_backend_factory->get($cfg_array['search_type']);
if (confirm_box(true))
{
if (!method_exists($search, 'init') || !($error = $search->init()))
// Initialize search backend, if $error is false means that everything is ok
if (!($error = $search->init()))
{
$config->set('search_type', $cfg_array['search_type']);