Merge pull request #12180 from agileware/CIVICRM-832-5.0
[civicrm-core.git] / CRM / Utils / Mail.php
index c56d9556e0d7a384308399abd4cf9758d666a083..8929f2052ee3246dd53353dd92f08bf9e8fa9d50 100644 (file)
@@ -270,7 +270,7 @@ class CRM_Utils_Mail {
     }
 
     $message = self::setMimeParams($msg);
-    $headers = &$msg->headers($headers);
+    $headers = $msg->headers($headers);
 
     $to = array($params['toEmail']);
     $result = NULL;
@@ -428,7 +428,7 @@ class CRM_Utils_Mail {
    *
    * @return mixed
    */
-  public static function &setMimeParams(&$message, $params = NULL) {
+  public static function setMimeParams($message, $params = NULL) {
     static $mimeParams = NULL;
     if (!$params) {
       if (!$mimeParams) {