Mailer.php
authoredward <edward@roojs.com>
Mon, 26 Mar 2018 06:18:21 +0000 (14:18 +0800)
committeredward <edward@roojs.com>
Mon, 26 Mar 2018 06:18:21 +0000 (14:18 +0800)
Mailer.php

index 92f8b5c..3e9a353 100644 (file)
@@ -466,6 +466,7 @@ class Pman_Core_Mailer {
         if(!$head->length){
             $head = $dom->createElement('head');
             $html->item(0)->appendChild($head);
+            $head = $dom->getElementsByTagName('head');
         }
         
         $s = $dom->createElement('style');