From 63ffb58b652e32797dd3234597ee61cd0f41b0dd Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 4 Feb 2016 16:00:46 +0530 Subject: [PATCH] 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 f62a3235f1..0a9ce2ef1f 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -760,7 +760,7 @@ ORDER BY i.contact_id, i.{$tempColumn} $this->templates = array(); if ($this->body_text || !empty($this->header)) { $template = array(); - if ($this->header->body_text) { + if (!empty($this->header->body_text)) { $template[] = $this->header->body_text; } else { @@ -774,7 +774,7 @@ ORDER BY i.contact_id, i.{$tempColumn} $template[] = CRM_Utils_String::htmlToText($this->body_html); } - if ($this->footer->body_text) { + if (!empty($this->footer->body_text)) { $template[] = $this->footer->body_text; } else { -- 2.25.1