From afa5a47bd951ce7ddc0db0b88f4fa5104915b3d3 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 22 May 2018 15:54:21 +0530 Subject: [PATCH] minor fix --- 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 695d76e07a2a..c9819ba00204 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(), ));