From 8d520eaddc33fc4dda8909b4e31b0b8aa597a7ae Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 11 Apr 2014 14:54:33 -0700 Subject: [PATCH] CRM-14396 - CRM_Core_Payment::handlePaymentMethod - Don't leak $paymentClass across iterations of while() --- CRM/Core/Payment.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Core/Payment.php b/CRM/Core/Payment.php index 6afcf6379a..5624984090 100644 --- a/CRM/Core/Payment.php +++ b/CRM/Core/Payment.php @@ -260,10 +260,7 @@ abstract class CRM_Core_Payment { } else { // Legacy or extension as module instance - if(empty($paymentClass)) { - $paymentClass = 'CRM_Core_' . $dao->class_name; - - } + $paymentClass = 'CRM_Core_' . $dao->class_name; } $paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($dao->processor_id, $mode); -- 2.25.1