aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_search.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/acp/acp_search.php')
-rw-r--r--phpBB/includes/acp/acp_search.php17
1 files changed, 13 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_search.php b/phpBB/includes/acp/acp_search.php
index cfe657491d..dc6f3d1c44 100644
--- a/phpBB/includes/acp/acp_search.php
+++ b/phpBB/includes/acp/acp_search.php
@@ -183,16 +183,25 @@ class acp_search
}
}
- if ($updated)
+ $search = null;
+ $error = false;
+ if (!$this->init_search($config['search_type'], $search, $error))
{
- if (method_exists($search, 'config_updated'))
+ if ($updated)
{
- if ($search->config_updated())
+ if (method_exists($search, 'config_updated'))
{
- trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
+ if ($search->config_updated())
+ {
+ trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
+ }
}
}
}
+ else
+ {
+ trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
+ }
trigger_error($user->lang['CONFIG_UPDATED'] . $extra_message . adm_back_link($this->u_action));
}