dev/core#3177 Switch sms to use flexmailer token rendering
[civicrm-core.git] / CRM / Mailing / Page / View.php
index 29818074424277ba02f1c832a43fc262be3f3ae8..4b63e2b4a2b808c1d2ca3e8ef943c5f13126368f 100644 (file)
@@ -150,7 +150,7 @@ class CRM_Mailing_Page_View extends CRM_Core_Page {
     $mailing = $result['values'] ?? NULL;
 
     $title = NULL;
-    if (isset($mailing['body_html']) && empty($_GET['text'])) {
+    if (!empty($mailing['body_html']) && empty($_GET['text'])) {
       $header = 'text/html; charset=utf-8';
       $content = $mailing['body_html'];
       if (strpos($content, '<head>') === FALSE && strpos($content, '<title>') === FALSE) {