From ef3a8cf010370949e60788589b8909daed95dd13 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 28 Aug 2013 15:40:11 +1200 Subject: [PATCH] test fix on api_v3_ContributionTest.testCompleteTransaction api_v3_ContributionTest.testCompleteTransaction --- CRM/Core/Payment/BaseIPN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/Payment/BaseIPN.php b/CRM/Core/Payment/BaseIPN.php index 942822432b..5f2f7bec31 100644 --- a/CRM/Core/Payment/BaseIPN.php +++ b/CRM/Core/Payment/BaseIPN.php @@ -330,7 +330,7 @@ class CRM_Core_Payment_BaseIPN { $values['receipt_from_name'] = $domainValues[0]; $values['receipt_from_email'] = $domainValues[1]; } - if($recurContrib->id){ + if($recurContrib && $recurContrib->id){ //CRM-13273 - is_email_receipt setting on recurring contribution should take precedence over contribution page setting $values['is_email_receipt'] = $recurContrib->is_email_receipt; } -- 2.25.1