diff --git a/CHANGELOG.md b/CHANGELOG.md index 379d27d1..81e0612d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ **Merged pull requests:** - Release v2.1.5-2023.09 🎉 -- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239) ([belomaxorka](https://github.com/belomaxorka)) +- Minor improvements [\#235](https://github.com/torrentpier/torrentpier-lts/pull/235), [\#236](https://github.com/torrentpier/torrentpier-lts/pull/236), [\#237](https://github.com/torrentpier/torrentpier-lts/pull/237), [\#238](https://github.com/torrentpier/torrentpier-lts/pull/238), [\#239](https://github.com/torrentpier/torrentpier-lts/pull/239), [\#240](https://github.com/torrentpier/torrentpier-lts/pull/240) ([belomaxorka](https://github.com/belomaxorka)) ## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04) [Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08) diff --git a/library/includes/functions.php b/library/includes/functions.php index a3d7fc6c..225b7cd1 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -2821,7 +2821,7 @@ function bb_captcha ($mode, $callback = '') $secret = $bb_cfg['captcha']['secret_key']; $public = $bb_cfg['captcha']['public_key']; - $theme = $bb_cfg['captcha']['theme'] ?? 'light'; + $theme = isset($bb_cfg['captcha']['theme']) ? $bb_cfg['captcha']['theme'] : 'light'; $reCaptcha = new ReCaptcha($secret);