From d857a3d85e8bbcc213097cfe41448cbb1447a8b1 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 27 Feb 2014 11:07:37 +0100 Subject: [PATCH] [FIX] No captcha on contactform if disabled Fixes #1846 once merged --- public/include/pages/contactform/contactform.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/contactform/contactform.inc.php b/public/include/pages/contactform/contactform.inc.php index 0a8b46de..f83e89f2 100644 --- a/public/include/pages/contactform/contactform.inc.php +++ b/public/include/pages/contactform/contactform.inc.php @@ -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 (