projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19c05b0
)
DataObjects/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Tue, 23 Dec 2014 09:19:29 +0000
(17:19 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 23 Dec 2014 09:19:29 +0000
(17:19 +0800)
DataObjects/Core_email.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_email.php
b/DataObjects/Core_email.php
index
0241331
..
fb314c6
100644
(file)
--- a/
DataObjects/Core_email.php
+++ b/
DataObjects/Core_email.php
@@
-242,7
+242,9
@@
class Pman_Core_DataObjects_Core_email extends DB_DataObject
$element->setAttribute('height', '1');
$html = $doc->getElementsByTagName('html');
- $html->item(0)->appendChild($element);
+ if ($html->length) {
+ $html->item(0)->appendChild($element);
+ }
$this->plaintext = str_replace("{unsubscribe_link}", $unsubscribe, $this->plaintext);
}