From eb48403e8f35f3295c7ab7481dc49c293f21be17 Mon Sep 17 00:00:00 2001 From: "wouter.hechtermans" Date: Fri, 8 Mar 2019 14:39:25 +0100 Subject: [PATCH] refs issue 788 added extra & sign. --- CRM/Contribute/Form/Contribution/Main.php | 2 +- CRM/Event/Form/Registration/Register.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 8be60178b1..89de770a1a 100644 --- a/CRM/Contribute/Form/Contribution/Main.php +++ b/CRM/Contribute/Form/Contribution/Main.php @@ -897,7 +897,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu // return if this is express mode $config = CRM_Core_Config::singleton(); if ($self->_paymentProcessor && - $self->_paymentProcessor['billing_mode'] & CRM_Core_Payment::BILLING_MODE_BUTTON + $self->_paymentProcessor['billing_mode'] && CRM_Core_Payment::BILLING_MODE_BUTTON ) { if (!empty($fields[$self->_expressButtonName . '_x']) || !empty($fields[$self->_expressButtonName . '_y']) || CRM_Utils_Array::value($self->_expressButtonName, $fields) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index da54819b40..ef96be1ebe 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -1147,7 +1147,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { $this->handlePreApproval($params); } elseif ($this->_paymentProcessor && - $this->_paymentProcessor['billing_mode'] & CRM_Core_Payment::BILLING_MODE_NOTIFY + $this->_paymentProcessor['billing_mode'] && CRM_Core_Payment::BILLING_MODE_NOTIFY ) { // The concept of contributeMode is deprecated - but still needs removal from the message templates. $this->set('contributeMode', 'notify'); -- 2.25.1