mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Fixed incorrect condition in bb_captcha (#1231)
* Fixed incorrect condition in bb_captcha * Update CHANGELOG.md
This commit is contained in:
parent
517b62c2ba
commit
2bb6c50710
2 changed files with 2 additions and 1 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue