From d2485799dd8aa26046df5d78423205a80be6bcc2 Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Mon, 28 Apr 2014 13:33:04 -0400 Subject: [PATCH] CRM-14543 - Enabling ReCaptcha fails if library is already loaded --- CRM/Utils/ReCAPTCHA.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Utils/ReCAPTCHA.php b/CRM/Utils/ReCAPTCHA.php index efad639019..1f2c2ad436 100644 --- a/CRM/Utils/ReCAPTCHA.php +++ b/CRM/Utils/ReCAPTCHA.php @@ -77,7 +77,9 @@ class CRM_Utils_ReCAPTCHA { $error = NULL; $config = CRM_Core_Config::singleton(); $useSSL = FALSE; + if ( !function_exists( 'recaptcha_get_html' ) ) { require_once 'packages/recaptcha/recaptchalib.php'; + } // See if we are using SSL if (CRM_Utils_System::isSSL()) { -- 2.25.1