* eMail: fix possible problem when mail-message-body (text or html part) is empty

This commit is contained in:
Klaus Leithoff 2013-09-06 12:00:41 +00:00
parent 55346c45a3
commit 7fe91e4e77

View File

@ -1494,6 +1494,12 @@ blockquote[type=cite] {
$body .= $singleBodyPart['body']; $body .= $singleBodyPart['body'];
continue; continue;
} }
$bodyPartIsSet = strlen(trim($singleBodyPart['body']));
if (!$bodyPartIsSet)
{
$body .= '';
continue;
}
if(!empty($body)) { if(!empty($body)) {
$body .= '<hr style="border:dotted 1px silver;">'; $body .= '<hr style="border:dotted 1px silver;">';
} }