From 99459756ac394e037138c6782e1949ebe29e7b31 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 25 Nov 2015 18:47:29 +0530 Subject: [PATCH] minor fix --- CRM/Financial/BAO/PaymentProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Financial/BAO/PaymentProcessor.php b/CRM/Financial/BAO/PaymentProcessor.php index 30692c2c3f..5ff3237b17 100644 --- a/CRM/Financial/BAO/PaymentProcessor.php +++ b/CRM/Financial/BAO/PaymentProcessor.php @@ -348,7 +348,7 @@ class CRM_Financial_BAO_PaymentProcessor extends CRM_Financial_DAO_PaymentProces $testProcessors = in_array('TestMode', $capabilities) ? self::getAllPaymentProcessors('test') : array(); $processors = self::getAllPaymentProcessors('all'); - if (in_array('TestMode', $capabilities) && !is_scalar($ids)) { + if (in_array('TestMode', $capabilities) && is_array($ids)) { $possibleLiveIDs = array_diff($ids, array_keys($testProcessors)); foreach ($possibleLiveIDs as $possibleLiveID) { if (isset($processors[$possibleLiveID]) && ($liveProcessorName = $processors[$possibleLiveID]['name']) != FALSE) { -- 2.25.1