From cfb2f038c6710203a0cf038375c217e3f080cccd Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 18 Jan 2021 11:15:34 +1300 Subject: [PATCH] [REF] Param simplification --- CRM/Core/Payment/PayPalProIPN.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/CRM/Core/Payment/PayPalProIPN.php b/CRM/Core/Payment/PayPalProIPN.php index b38afa755e..0ea9694d4e 100644 --- a/CRM/Core/Payment/PayPalProIPN.php +++ b/CRM/Core/Payment/PayPalProIPN.php @@ -257,22 +257,16 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { $recur->save(); if ($sendNotification) { - $autoRenewMembership = FALSE; - if ($recur->id && - isset($ids['membership']) && $ids['membership'] - ) { - $autoRenewMembership = TRUE; - } //send recurring Notification email for user CRM_Contribute_BAO_ContributionPage::recurringNotify($subscriptionPaymentStatus, $ids['contact'], $ids['contributionPage'], $recur, - $autoRenewMembership + !empty($ids['membership']) ); } - if ($txnType != 'recurring_payment') { + if ($txnType !== 'recurring_payment') { return; } -- 2.25.1