Minor improvements (#903)

This commit is contained in:
Roman Kelesidis 2023-09-17 16:17:10 +07:00 committed by GitHub
commit 119cf935a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 9 deletions

View file

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