From 76bae7699b0a437541a73053b774c6f7689deddf Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 4 Feb 2016 16:06:03 +0530 Subject: [PATCH] CRM-17908: more fixes ---------------------------------------- * CRM-17908: text version of header/footer not used when auto-generating text version of email https://issues.civicrm.org/jira/browse/CRM-17908 --- CRM/Mailing/BAO/Mailing.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 0a9ce2ef1f..58d4f00de2 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -763,7 +763,7 @@ ORDER BY i.contact_id, i.{$tempColumn} if (!empty($this->header->body_text)) { $template[] = $this->header->body_text; } - else { + elseif (!empty($this->header->body_html)) { $template[] = CRM_Utils_String::htmlToText($this->header->body_html); } @@ -777,7 +777,7 @@ ORDER BY i.contact_id, i.{$tempColumn} if (!empty($this->footer->body_text)) { $template[] = $this->footer->body_text; } - else { + elseif (!empty($this->footer->body_html)) { $template[] = CRM_Utils_String::htmlToText($this->footer->body_html); } -- 2.25.1