$selOrgMemType[$memberOfContactId][0] = ts('- select -');
}
if (empty($selOrgMemType[$memberOfContactId][$key])) {
- $selOrgMemType[$memberOfContactId][$key] = CRM_Utils_Array::value('name', $values);
+ $selOrgMemType[$memberOfContactId][$key] = $values['name'] ?? NULL;
}
}
- $totalAmount = CRM_Utils_Array::value('minimum_fee', $values);
+ $totalAmount = $values['minimum_fee'] ?? NULL;
//CRM-18827 - override the default value if total_amount is submitted
if (!empty($this->_submitValues['total_amount'])) {
- $totalAmount = $this->_submitValues['total_amount'];
+ $totalAmount = CRM_Utils_Rule::cleanMoney($this->_submitValues['total_amount']);
}
// build membership info array, which is used when membership type is selected to:
// - set the payment information block