projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1d15a7
)
Mailer.php
author
Alan Knowles
<alan@roojs.com>
Wed, 22 Aug 2018 10:26:38 +0000
(18:26 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 22 Aug 2018 10:26:38 +0000
(18:26 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
b0a6593
..
52c1133
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-503,7
+503,7
@@
class Pman_Core_Mailer {
@$dom->loadHTML('<?xml encoding="UTF-8">' .$html);
$body = $dom->getElementsByTagName('body');
- if (
$body->count(
)) {
+ if (
!empty($body->length
)) {
$body->item(0)->setAttribute('class', $cls);
} else {
$body = $dom->createElement("body");