mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Minor improvements (#903)
This commit is contained in:
parent
a2e7251d38
commit
119cf935a2
5 changed files with 10 additions and 9 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue