projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4d2ef5
)
Mailer.php
author
Alan Knowles
<alan@roojs.com>
Wed, 15 Aug 2018 02:28:12 +0000
(10:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 15 Aug 2018 02:28:12 +0000
(10:28 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
ff0ace8
..
b0a6593
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-505,6
+505,10
@@
class Pman_Core_Mailer {
$body = $dom->getElementsByTagName('body');
if ($body->count()) {
$body->item(0)->setAttribute('class', $cls);
+ } else {
+ $body = $dom->createElement("body");
+ $body->setAttribute('class', $cls);
+ $dom->appendChild($body);
}