From b96282e5a3b118414a1a5bef39b375506e61614a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 29 Jul 2015 14:45:23 +1200 Subject: [PATCH] enotice fix --- CRM/Contribute/BAO/ContributionPage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CRM/Contribute/BAO/ContributionPage.php b/CRM/Contribute/BAO/ContributionPage.php index 3c0a4efd34..9565c377a0 100644 --- a/CRM/Contribute/BAO/ContributionPage.php +++ b/CRM/Contribute/BAO/ContributionPage.php @@ -471,11 +471,10 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio * @param object $recur * Object of recurring contribution table. * @param bool|object $autoRenewMembership is it a auto renew membership. - * - * @return void */ public static function recurringNotify($type, $contactID, $pageID, $recur, $autoRenewMembership = FALSE) { $value = array(); + $isEmailReceipt = FALSE; if ($pageID) { CRM_Core_DAO::commonRetrieveAll('CRM_Contribute_DAO_ContributionPage', 'id', $pageID, $value, array( 'title', @@ -485,9 +484,9 @@ class CRM_Contribute_BAO_ContributionPage extends CRM_Contribute_DAO_Contributio 'cc_receipt', 'bcc_receipt', )); + $isEmailReceipt = CRM_Utils_Array::value('is_email_receipt', $value[$pageID]); } - $isEmailReceipt = CRM_Utils_Array::value('is_email_receipt', $value[$pageID]); $isOfflineRecur = FALSE; if (!$pageID && $recur->id) { $isOfflineRecur = TRUE; -- 2.25.1