From 73cc35466e19d480bc282332afcdcfc52e36dcca Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 22 Jan 2016 12:23:59 -0800 Subject: [PATCH] CRM-17860 - Mailing.preview API - Fix for PHP 5.4 testing --- 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 7463032416..6b7d164058 100755 --- a/api/v3/Mailing.php +++ b/api/v3/Mailing.php @@ -544,7 +544,7 @@ function civicrm_api3_mailing_preview($params) { $details = CRM_Utils_Token::getTokenDetails($mailingParams, $returnProperties, TRUE, TRUE, NULL, $mailing->getFlattenedTokens()); - $mime = &$mailing->compose(NULL, NULL, NULL, $session->get('userID'), $fromEmail, $fromEmail, + $mime = $mailing->compose(NULL, NULL, NULL, $session->get('userID'), $fromEmail, $fromEmail, TRUE, $details[0][$contactID], $attachments ); -- 2.25.1