[REF] Param simplification
authoreileen <emcnaughton@wikimedia.org>
Sun, 17 Jan 2021 22:15:34 +0000 (11:15 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 17 Jan 2021 22:15:34 +0000 (11:15 +1300)
CRM/Core/Payment/PayPalProIPN.php

index b38afa755ee921775bd5a449752e1a2337be12bc..0ea9694d4e3345a0619d68a6bfb7dd7fb7d76cfc 100644 (file)
@@ -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;
     }