From: eileen Date: Sun, 17 Jan 2021 22:15:34 +0000 (+1300) Subject: [REF] Param simplification X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cfb2f038c6710203a0cf038375c217e3f080cccd;p=civicrm-core.git [REF] Param simplification --- 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; }