Mailer.php
authorAlan Knowles <alan@roojs.com>
Wed, 22 Aug 2018 10:26:38 +0000 (18:26 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 22 Aug 2018 10:26:38 +0000 (18:26 +0800)
Mailer.php

index b0a6593..52c1133 100644 (file)
@@ -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");