CRM-13823 find status preference by name/domain combo
[civicrm-core.git] / CRM / Utils / Check / Env.php
index 24e63310523afa0be51f3afbf3c44f546af9f8cb..4e82f05f8d19e3390d2bf0677ebc46af9415ee85 100644 (file)
@@ -147,12 +147,15 @@ class CRM_Utils_Check_Env {
       $msg = ts("Please enter your organization's <a href=\"%1\">name and primary address</a>.",
         array(1 => $fixEmailUrl));
     }
-    $messages[] = new CRM_Utils_Check_Message(
-      'checkDomainNameEmail',
-      $msg,
-      ts('Complete Setup'),
-      \Psr\Log\LogLevel::WARNING
-    );
+
+    if (!empty($msg)) {
+      $messages[] = new CRM_Utils_Check_Message(
+        'checkDomainNameEmail',
+        $msg,
+        ts('Complete Setup'),
+        \Psr\Log\LogLevel::WARNING
+      );
+    }
 
     return $messages;
   }