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);