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>
This commit is contained in:
Tomasz Paluszkiewicz 2019-02-22 16:19:25 +01:00
parent 2083103d0b
commit 65853a3314
No known key found for this signature in database
GPG Key ID: 167C7768863A1D31
1 changed files with 1 additions and 0 deletions

View File

@ -436,6 +436,7 @@ EOF;
}
$this->ensureBodyIsOpened();
$this->ensureBodyListClosed();
$this->htmlBody .= vsprintf($this->bodyText, [$text]);
if ($plainText !== false) {