Merge pull request #1847 from MPOS/contactform-recaptcha-disabled

[FIX] No captcha on contactform if disabled
This commit is contained in:
Sebastian Grewe 2014-02-27 11:41:09 +01:00
commit 37b7a3c8e0

View File

@ -2,7 +2,7 @@
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// ReCaptcha handling if enabled
if ($setting->getValue('recaptcha_enabled') && $setting->getValue('acl_contactform') != 2) {
if ($setting->getValue('recaptcha_enabled') && $setting->getValue('recaptcha_enabled_contactform') && $setting->getValue('acl_contactform') != 2) {
require_once(INCLUDE_DIR . '/lib/recaptchalib.php');
// Load re-captcha specific data
$rsp = recaptcha_check_answer (