//get the valid recurring processors.
$test = strtolower($this->_mode) == 'test' ? TRUE : FALSE;
$recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
- $recurProcessor = array_intersect_assoc($this->_processors, $recurring);
+ $recurProcessor = array_intersect_key($this->_processors, $recurring);
$autoRenew = array();
if (!empty($recurProcessor)) {
if (!empty($membershipType)) {
//get the valid recurring processors.
$test = strtolower($this->_mode) == 'test' ? TRUE : FALSE;
$recurring = CRM_Core_PseudoConstant::paymentProcessor(FALSE, $test, 'is_recur = 1');
- $recurProcessor = array_intersect_assoc($this->_processors, $recurring);
+ $recurProcessor = array_intersect_key($this->_processors, $recurring);
if (!empty($recurProcessor)) {
$autoRenew = array();
if (!empty($membershipType)) {