mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
sanity check - avoid ugly error messages
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10144 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bf2133d380
commit
ffbe4e3b82
1 changed files with 4 additions and 3 deletions
|
@ -30,10 +30,13 @@ class acp_captcha
|
||||||
$user->add_lang('acp/board');
|
$user->add_lang('acp/board');
|
||||||
|
|
||||||
include($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
|
include($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
|
||||||
|
$captchas = phpbb_captcha_factory::get_captcha_types();
|
||||||
|
|
||||||
$selected = request_var('select_captcha', $config['captcha_plugin']);
|
$selected = request_var('select_captcha', $config['captcha_plugin']);
|
||||||
|
$selected = (isset($captchas['available'][$selected]) || isset($captchas['unavailable'][$selected])) ? $selected : $config['captcha_plugin'];
|
||||||
$configure = request_var('configure', false);
|
$configure = request_var('configure', false);
|
||||||
|
|
||||||
|
|
||||||
// Oh, they are just here for the view
|
// Oh, they are just here for the view
|
||||||
if (isset($_GET['captcha_demo']))
|
if (isset($_GET['captcha_demo']))
|
||||||
{
|
{
|
||||||
|
@ -49,8 +52,6 @@ class acp_captcha
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$captchas = phpbb_captcha_factory::get_captcha_types();
|
|
||||||
|
|
||||||
$config_vars = array(
|
$config_vars = array(
|
||||||
'enable_confirm' => array('tpl' => 'REG_ENABLE', 'default' => false),
|
'enable_confirm' => array('tpl' => 'REG_ENABLE', 'default' => false),
|
||||||
'enable_post_confirm' => array('tpl' => 'POST_ENABLE', 'default' => false),
|
'enable_post_confirm' => array('tpl' => 'POST_ENABLE', 'default' => false),
|
||||||
|
|
Loading…
Add table
Reference in a new issue