From b45a7eb6dbb2c4f18cedb1062537de5d9c7dec8c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 20 May 2018 07:55:26 +1000 Subject: [PATCH] Update variable name as per upgraded Mime_mail package to support PHP7.2 --- api/v3/Mailing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/Mailing.php b/api/v3/Mailing.php index b0e868490c..695d76e07a 100644 --- a/api/v3/Mailing.php +++ b/api/v3/Mailing.php @@ -584,7 +584,7 @@ function civicrm_api3_mailing_preview($params) { return civicrm_api3_create_success(array( 'id' => $params['id'], 'contact_id' => $contactID, - 'subject' => $mime->_headers['Subject'], + 'subject' => $mime->headers['Subject'], 'body_html' => $mime->getHTMLBody(), 'body_text' => $mime->getTXTBody(), )); -- 2.25.1