forked from GithubBackups/tinyib
Fix PHP <5.5 compatibility
This commit is contained in:
parent
64aa4a1917
commit
7de09467cc
@ -246,7 +246,7 @@ function checkCAPTCHA() {
|
|||||||
}
|
}
|
||||||
fancyDie($captcha_error);
|
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 = isset($_POST['captcha']) ? strtolower(trim($_POST['captcha'])) : '';
|
||||||
$captcha_solution = isset($_SESSION['tinyibcaptcha']) ? strtolower(trim($_SESSION['tinyibcaptcha'])) : '';
|
$captcha_solution = isset($_SESSION['tinyibcaptcha']) ? strtolower(trim($_SESSION['tinyibcaptcha'])) : '';
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ EOF;
|
|||||||
$unique_posts_html = '';
|
$unique_posts_html = '';
|
||||||
|
|
||||||
$captcha_html = '';
|
$captcha_html = '';
|
||||||
if (!empty(TINYIB_CAPTCHA)) {
|
if (TINYIB_CAPTCHA) {
|
||||||
if (TINYIB_CAPTCHA === 'recaptcha') {
|
if (TINYIB_CAPTCHA === 'recaptcha') {
|
||||||
$captcha_inner_html = '
|
$captcha_inner_html = '
|
||||||
<div style="min-height: 80px;">
|
<div style="min-height: 80px;">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user