Browse Source

fix(EMailTemplate): malformed HTML in some cases

when an addBodyListItem() is not directly followed by addBodyButton(), resulting HTML is broken

Signed-off-by: Tomasz Paluszkiewicz <tomasz.paluszkiewicz@gmail.com>
tags/v16.0.0alpha1
Tomasz Paluszkiewicz 5 years ago
parent
commit
65853a3314
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/private/Mail/EMailTemplate.php

+ 1
- 0
lib/private/Mail/EMailTemplate.php View File

@@ -436,6 +436,7 @@ EOF;
}

$this->ensureBodyIsOpened();
$this->ensureBodyListClosed();

$this->htmlBody .= vsprintf($this->bodyText, [$text]);
if ($plainText !== false) {

Loading…
Cancel
Save