minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 25 Nov 2015 13:17:29 +0000 (18:47 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 25 Nov 2015 13:17:29 +0000 (18:47 +0530)
CRM/Financial/BAO/PaymentProcessor.php

index 30692c2c3fe109119cda64009800ca58f63a6bbe..5ff3237b172abeccfabfa2cb05f2247a820e86fa 100644 (file)
@@ -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) {