X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FAbstractEditPayment.php;h=bc37b6f8a9be49b9fe43ab4a63b2f1dffabc803e;hb=a6abc1eddd06c8b484ef88a1400e875df0c6f066;hp=8da1c12557af9b6937ffc18bcd72f923bfeee69a;hpb=fa4de9b377de72ab40004f1ed874d8d4d8dc34b7;p=civicrm-core.git diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index 8da1c12557..bc37b6f8a9 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -391,9 +391,9 @@ WHERE contribution_id = {$id} // for some reason there was a need to filter here per commit history - but this indicates a problem // somewhere else. if ($processor['is_test'] == ($this->_mode == 'test')) { - $this->_processors[$id] = ts($processor['name']); + $this->_processors[$id] = $processor['name']; if (!empty($processor['description'])) { - $this->_processors[$id] .= ' : ' . ts($processor['description']); + $this->_processors[$id] .= ' : ' . $processor['description']; } if ($processor['is_recur']) { $this->_recurPaymentProcessors[$id] = $this->_processors[$id]; @@ -578,9 +578,7 @@ WHERE contribution_id = {$id} $this->_params['month'] = CRM_Core_Payment_Form::getCreditCardExpirationMonth($this->_params); } $this->assign('credit_card_exp_date', CRM_Utils_Date::mysqlToIso(CRM_Utils_Date::format($this->_params['credit_card_exp_date']))); - $this->assign('credit_card_number', - CRM_Utils_System::mungeCreditCard($this->_params['credit_card_number']) - ); + $this->assign('credit_card_number', CRM_Utils_System::mungeCreditCard($this->_params['credit_card_number'])); $this->assign('credit_card_type', CRM_Utils_Array::value('credit_card_type', $this->_params)); } $this->_params['ip_address'] = CRM_Utils_System::ipAddress(); @@ -608,7 +606,7 @@ WHERE contribution_id = {$id} * @return void */ public static function formatCreditCardDetails(&$params) { - if (in_array('credit_card_type', array_keys($params))) { + if (!empty($params['credit_card_type'])) { $params['card_type_id'] = CRM_Core_PseudoConstant::getKey('CRM_Core_BAO_FinancialTrxn', 'card_type_id', $params['credit_card_type']); } if (!empty($params['credit_card_number']) && empty($params['pan_truncation'])) {