allow blank templates
authordemeritcowboy <demeritcowboy@hotmail.com>
Fri, 13 Oct 2023 13:03:45 +0000 (09:03 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Fri, 13 Oct 2023 13:03:45 +0000 (09:03 -0400)
CRM/Upgrade/Incremental/MessageTemplates.php

index 8bba12e72b5565bc213418a5e37ecf9f6b0ce25f..22ae1f1098a7e11c4d0468b9b116f3380325ae90 100644 (file)
@@ -581,7 +581,7 @@ class CRM_Upgrade_Incremental_MessageTemplates {
           continue;
         }
         $content = file_get_contents($filePath);
-        if ($content) {
+        if ($content !== FALSE) {
           CRM_Core_DAO::executeQuery(
             "UPDATE civicrm_msg_template SET msg_{$type} = %1 WHERE id = %2", [
               1 => [$content, 'String'],