Revert "Update functions.php"

This reverts commit 6abe154967.
This commit is contained in:
Roman Kelesidis 2023-12-20 19:13:42 +07:00
parent 6abe154967
commit 8d0773fa7b

View File

@ -2849,7 +2849,7 @@ function bb_captcha ($mode, $callback = '')
$public = $bb_cfg['captcha']['public_key'];
$theme = isset($bb_cfg['captcha']['theme']) ? $bb_cfg['captcha']['theme'] : 'light';
if ($bb_cfg['captcha']['disabled'] || !$public || !$secret)
if (!$bb_cfg['captcha']['disabled'] && (!$public || !$secret))
{
bb_die($lang['CAPTCHA_SETTINGS']);
}