Revert "Fixed incorrect condition in bb_captcha (#1231)"

This reverts commit 2bb6c50710.
This commit is contained in:
Roman Kelesidis 2023-12-20 22:26:40 +07:00
commit 86eb427fbd
2 changed files with 1 additions and 2 deletions

View file

@ -2110,7 +2110,7 @@ function bb_captcha($mode, $callback = '')
$public = $bb_cfg['captcha']['public_key'];
$cp_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']);
}