Mailer.php
[Pman.Core] / Mailer.php
index 5fa0108..63ba6b2 100644 (file)
@@ -110,6 +110,8 @@ class Pman_Core_Mailer {
     
     function toData()
     {
+        $ts = microtime(true);
+        
         $templateFile = $this->template;
         $args = (array)$this->contents;
         $content  = clone($this->page);
@@ -171,7 +173,7 @@ class Pman_Core_Mailer {
             // for the html body, we may want to convert the attachments to images.
 //            var_dump($htmlbody);exit;
             
-            if($content->body_cls && strlen($content->body_cls)){
+            if(!empty($content->body_cls) && strlen($content->body_cls)){
                 $htmlbody = $this->htmlbodySetClass($htmlbody, $content->body_cls);
             }