Fix PHP <5.5 compatibility

This commit is contained in:
Trevor Slocum 2016-07-21 11:10:02 -07:00
parent 64aa4a1917
commit 7de09467cc
2 changed files with 2 additions and 2 deletions

View File

@ -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'])) : '';

View File

@ -277,7 +277,7 @@ EOF;
$unique_posts_html = '';
$captcha_html = '';
if (!empty(TINYIB_CAPTCHA)) {
if (TINYIB_CAPTCHA) {
if (TINYIB_CAPTCHA === 'recaptcha') {
$captcha_inner_html = '
<div style="min-height: 80px;">