Update functions.php

This commit is contained in:
Roman Kelesidis 2023-12-20 19:12:40 +07:00
parent ab9853cdd4
commit 6abe154967

View File

@ -2849,7 +2849,7 @@ function bb_captcha ($mode, $callback = '')
$public = $bb_cfg['captcha']['public_key']; $public = $bb_cfg['captcha']['public_key'];
$theme = isset($bb_cfg['captcha']['theme']) ? $bb_cfg['captcha']['theme'] : 'light'; $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']); bb_die($lang['CAPTCHA_SETTINGS']);
} }