aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2008-02-26 17:13:12 +0000
committerNils Adermann <naderman@naderman.de>2008-02-26 17:13:12 +0000
commit30b24d476c3e010d9b2fc282e89a6fd8d8bdd6fa (patch)
tree70c34687ec377a6fc1337b5800bc56d6284ada6e /phpBB
parentf83b47bc11fbb689ed95f70f2099a7fad9f36144 (diff)
downloadforums-30b24d476c3e010d9b2fc282e89a6fd8d8bdd6fa.tar
forums-30b24d476c3e010d9b2fc282e89a6fd8d8bdd6fa.tar.gz
forums-30b24d476c3e010d9b2fc282e89a6fd8d8bdd6fa.tar.bz2
forums-30b24d476c3e010d9b2fc282e89a6fd8d8bdd6fa.tar.xz
forums-30b24d476c3e010d9b2fc282e89a6fd8d8bdd6fa.zip
guess we need to initialise it first
git-svn-id: file:///svn/phpbb/trunk@8404 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-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));
}