----------------------------------------
* CRM-17908: text version of header/footer not used when auto-generating text version of email
https://issues.civicrm.org/jira/browse/CRM-17908
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);
}
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);
}