From fb674ca959c243b8a433ad349ca14d12f282bbb1 Mon Sep 17 00:00:00 2001 From: eileenmcnaughton Date: Mon, 29 Jun 2015 22:55:47 +0000 Subject: [PATCH] put back check that has been passed in when filtering --- CRM/Financial/BAO/PaymentProcessor.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CRM/Financial/BAO/PaymentProcessor.php b/CRM/Financial/BAO/PaymentProcessor.php index fbade7839e..ba7e7fe6b6 100644 --- a/CRM/Financial/BAO/PaymentProcessor.php +++ b/CRM/Financial/BAO/PaymentProcessor.php @@ -379,7 +379,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces } foreach ($processors as $index => $processor) { - if (!in_array($processor['id'], $ids)) { + if (!empty($ids) && !in_array($processor['id'], $ids)) { unset ($processors[$index]); continue; } @@ -403,13 +403,10 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces /** * Is there a processor on this site with the specified capability. * @param array $capabilities - * @param bool $isIncludeTest * * @return bool */ - public static function hasPaymentProcessorSupporting($capabilities = array(), $isIncludeTest = FALSE) { - $mode = $isIncludeTest ? 'Test' : 'Live'; - $capabilities[] = $mode . 'Mode'; + public static function hasPaymentProcessorSupporting($capabilities = array()) { $result = self::getPaymentProcessors($capabilities); return (!empty($result)) ? TRUE : FALSE; } -- 2.25.1