From 490ab337f7b5683b8349b33b5a91ed8161fb727f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 17 Apr 2026 16:16:33 +0000 Subject: [PATCH] Add a comment for conditions when to send the email --- core/users/user_edit.php | 1 + core/users/user_profile.php | 1 + 2 files changed, 2 insertions(+) diff --git a/core/users/user_edit.php b/core/users/user_edit.php index f92f7790c..0d8cd4999 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -592,6 +592,7 @@ } unset($sql, $parameters, $row); + //send email if the subject and body are not empty if (!empty($email_subject) && !empty($email_body)) { //replace variables in email body $email_body = str_replace('${domain}', $domain_name, $email_body); diff --git a/core/users/user_profile.php b/core/users/user_profile.php index fcbfc8ac1..4dd30c0fa 100644 --- a/core/users/user_profile.php +++ b/core/users/user_profile.php @@ -456,6 +456,7 @@ } unset($sql, $parameters, $row); + //send email if the subject and body are not empty if (!empty($email_subject) && !empty($email_body)) { //replace variables in email body $email_body = str_replace('${domain}', $domain_name, $email_body);