From 54d1bc765b6ff260ac614fa45fa4efb73ab40b2d Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 19 Jun 2014 16:21:04 -0700 Subject: [PATCH] CRM-14734 - fix notices for anonymous contact viewing a mailing. ---------------------------------------- * CRM-14734: https://issues.civicrm.org/jira/browse/CRM-14734 --- CRM/Mailing/Page/View.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/Page/View.php b/CRM/Mailing/Page/View.php index d61bc62be9..5753d43462 100644 --- a/CRM/Mailing/Page/View.php +++ b/CRM/Mailing/Page/View.php @@ -141,6 +141,7 @@ class CRM_Mailing_Page_View extends CRM_Core_Page { ); // get contact detail and compose if contact id exists + $returnProperties = $this->_mailing->getReturnProperties(); if (isset($this->_contactID)) { //get details of contact with token value including Custom Field Token Values.CRM-3734 $returnProperties = $this->_mailing->getReturnProperties(); @@ -164,7 +165,7 @@ class CRM_Mailing_Page_View extends CRM_Core_Page { get_class($this) ); - $details = $details[0][0]; + $details = $details[0]; $contactId = 0; } $mime = &$this->_mailing->compose(NULL, NULL, NULL, $contactId, -- 2.25.1