From: wouter.hechtermans Date: Fri, 8 Mar 2019 17:17:37 +0000 (+0100) Subject: refs issue 788 removed extra & sign, added int casting. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5e3148f4fa983a506f3196521427b58e22a7f150;p=civicrm-core.git refs issue 788 removed extra & sign, added int casting. --- diff --git a/CRM/Contribute/Form/Contribution/Main.php b/CRM/Contribute/Form/Contribution/Main.php index 89de770a1a..0115fab9a9 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 + (int) $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 ef96be1ebe..1cc5f83235 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 + (int) $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');