From c657f24fb14deab73c03fd6f3fd7569802a054ff Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 8 Oct 2023 11:30:16 +0100 Subject: [PATCH] Fix message within exception (PayPalIPN) --- CRM/Core/Payment/PayPalIPN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/PayPalIPN.php b/CRM/Core/Payment/PayPalIPN.php index 23be16e1af..232cad6e9f 100644 --- a/CRM/Core/Payment/PayPalIPN.php +++ b/CRM/Core/Payment/PayPalIPN.php @@ -430,7 +430,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN { $this->contribution = new CRM_Contribute_BAO_Contribution(); $this->contribution->id = $this->getContributionID(); if (!$this->contribution->find(TRUE)) { - throw new CRM_Core_Exception('Failure: Could not find contribution record for ' . (int) $contribution->id, NULL, ['context' => "Could not find contribution record: {$contribution->id} in IPN request: "]); + throw new CRM_Core_Exception('Failure: Could not find contribution record for ' . (int) $this->contribution->id, NULL, ['context' => "Could not find contribution record: {$this->contribution->id} in IPN request: "]); } if ((int) $this->contribution->contact_id !== $this->getContactID()) { CRM_Core_Error::debug_log_message("Contact ID in IPN not found but contact_id found in contribution."); -- 2.25.1