CIVICRM-1417 enable reCaptcha with pay later option
authorPengyi Zhang <pengyi@agileware.com.au>
Mon, 13 Jan 2020 05:51:33 +0000 (16:51 +1100)
committerPengyi Zhang <pengyi@agileware.com.au>
Mon, 13 Jan 2020 05:51:33 +0000 (16:51 +1100)
CRM/Contribute/Form/Contribution/Main.php

index 6f7d403abcd4776b81843421daff04b6197930ab..7b538a67d2dc6687e9ea918cf791cf4c155d6772 100644 (file)
@@ -283,7 +283,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
       $this->buildComponentForm($this->_id, $this);
     }
 
-    if (count($this->_paymentProcessors) >= 1 && !isset($this->_paymentProcessors[0]) && !$this->get_template_vars("isCaptcha") && $this->hasToAddForcefully()) {
+    if (count($this->_paymentProcessors) >= 1 && !$this->get_template_vars("isCaptcha") && $this->hasToAddForcefully()) {
       if (!$this->_userID) {
         $this->enableCaptchaOnForm();
       }