From 14e3614d45e8990507b9ee9a4c81a20f01b69a1e Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Wed, 13 Mar 2024 14:59:19 +0800 Subject: [PATCH] refs #39444, fix file not being created when no verified external file exists --- CRM/Utils/Mail.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Utils/Mail.php b/CRM/Utils/Mail.php index f0d23b393..1bddff8b1 100644 --- a/CRM/Utils/Mail.php +++ b/CRM/Utils/Mail.php @@ -602,6 +602,7 @@ public static function validDKIMDomainList($externalOnly = FALSE, $saveFile = NU if ($saveFile) { $confPath = CRM_Utils_System::cmsRootPath().DIRECTORY_SEPARATOR.CRM_Utils_System::confPath().DIRECTORY_SEPARATOR; $savePath = $confPath.basename($saveFile); + $existsDomains = array(); if (file_exists($savePath)) { $existsList = file_get_contents($savePath); $existsDomains = explode("\n", $existsList);