CRM-14396 - CRM_Core_Payment::handlePaymentMethod - Don't leak $paymentClass
authorTim Otten <totten@civicrm.org>
Fri, 11 Apr 2014 21:54:33 +0000 (14:54 -0700)
committerTim Otten <totten@civicrm.org>
Fri, 11 Apr 2014 21:54:33 +0000 (14:54 -0700)
across iterations of while()

CRM/Core/Payment.php

index 6afcf6379a6327fa64650bcf88bd6ec1be8a4c25..56249840903185d4f2f806e43a08b0e0daa56e21 100644 (file)
@@ -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);