From: monishdeb Date: Wed, 25 Nov 2015 13:17:29 +0000 (+0530) Subject: minor fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99459756ac394e037138c6782e1949ebe29e7b31;p=civicrm-core.git minor fix --- 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) {