X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Mailer.php;h=49f17ae9e3b37b180d7ec6c280633f61da956cc4;hb=e56cc1d3c9ffdc58dfe8261ab61d14b12dfa76e8;hp=c4dce68b62d482892ebe7847289bfcccfc28d02a;hpb=9f2e8b76b84fa7c2b4b13594918641c47dd2e2d6;p=Pman.Core diff --git a/Mailer.php b/Mailer.php index c4dce68b..49f17ae9 100644 --- a/Mailer.php +++ b/Mailer.php @@ -506,6 +506,9 @@ class Pman_Core_Mailer { $class = $dom->createAttribute('class'); $class->value = $cls; + if (!$body->item(0)) { + echo $html; + } $body->item(0)->appendChild($class); return $dom->saveHTML();