diff options
author | Nils Adermann <naderman@naderman.de> | 2008-02-26 17:13:21 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2008-02-26 17:13:21 +0000 |
commit | eaf97f2a672af99f9704171ecedc5676cf3dad7b (patch) | |
tree | b3e1668023b2141be35f86c759bb3af11f1ba3dd /phpBB/includes/acp/acp_search.php | |
parent | d6d2373582f831845fa8238cea31d73cc6f7d972 (diff) | |
download | forums-eaf97f2a672af99f9704171ecedc5676cf3dad7b.tar forums-eaf97f2a672af99f9704171ecedc5676cf3dad7b.tar.gz forums-eaf97f2a672af99f9704171ecedc5676cf3dad7b.tar.bz2 forums-eaf97f2a672af99f9704171ecedc5676cf3dad7b.tar.xz forums-eaf97f2a672af99f9704171ecedc5676cf3dad7b.zip |
guess we need to initialise it first
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8405 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_search.php')
-rw-r--r-- | phpBB/includes/acp/acp_search.php | 17 |
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)); } |