From: Tim Otten Date: Fri, 22 Jan 2016 20:23:59 +0000 (-0800) Subject: CRM-17860 - Mailing.preview API - Fix for PHP 5.4 testing X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=73cc35466e19d480bc282332afcdcfc52e36dcca;p=civicrm-core.git CRM-17860 - Mailing.preview API - Fix for PHP 5.4 testing --- 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 );