diff --git a/inc/functions.php b/inc/functions.php index 60a72fc..87da860 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -246,7 +246,7 @@ function checkCAPTCHA() { } fancyDie($captcha_error); } - } else if (!empty(TINYIB_CAPTCHA)) { // Simple CAPTCHA + } else if (TINYIB_CAPTCHA) { // Simple CAPTCHA $captcha = isset($_POST['captcha']) ? strtolower(trim($_POST['captcha'])) : ''; $captcha_solution = isset($_SESSION['tinyibcaptcha']) ? strtolower(trim($_SESSION['tinyibcaptcha'])) : ''; diff --git a/inc/html.php b/inc/html.php index 8f1d5f8..e64ca7f 100644 --- a/inc/html.php +++ b/inc/html.php @@ -277,7 +277,7 @@ EOF; $unique_posts_html = ''; $captcha_html = ''; - if (!empty(TINYIB_CAPTCHA)) { + if (TINYIB_CAPTCHA) { if (TINYIB_CAPTCHA === 'recaptcha') { $captcha_inner_html = '