From 603d4ac31734741c005dbab79953dbef0278acb9 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 6 Nov 2020 13:06:44 +1300 Subject: [PATCH] [Ref] Use variables directly --- CRM/Core/Payment/PayPalProIPN.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment/PayPalProIPN.php b/CRM/Core/Payment/PayPalProIPN.php index 61c86b269e..d6f44109d6 100644 --- a/CRM/Core/Payment/PayPalProIPN.php +++ b/CRM/Core/Payment/PayPalProIPN.php @@ -280,8 +280,8 @@ class CRM_Core_Payment_PayPalProIPN extends CRM_Core_Payment_BaseIPN { $this->single($input, [ 'related_contact' => $ids['related_contact'] ?? NULL, - 'participant' => !empty($objects['participant']) ? $objects['participant']->id : NULL, - 'contributionRecur' => !empty($objects['contributionRecur']) ? $objects['contributionRecur']->id : NULL, + 'participant' => $ids['participant'] ?? NULL, + 'contributionRecur' => $recur->id ?? NULL, ], $objects, TRUE, $first); } -- 2.25.1