From 7de09467cc8e45d1a7e0028f04584b363c5eb90c Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Thu, 21 Jul 2016 11:10:02 -0700 Subject: [PATCH] Fix PHP <5.5 compatibility --- inc/functions.php | 2 +- inc/html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = '