Revert "trivia: coding style"

This reverts commit 9e557501fa.
This commit is contained in:
Andrew Dolgov 2022-06-06 21:05:15 +03:00
parent 8ef816d8f8
commit 8151295829
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 6 additions and 5 deletions

View File

@ -47,11 +47,12 @@ class Mailer {
$headers = [ "From: $from_combined" ];
if ($message_html) {
$headers[] = "MIME-Version: 1.0";
$headers[] = "Content-Type: text/html; charset=UTF-8";
} else {
$headers[] = "Content-Type: text/plain; charset=UTF-8";
if($message_html){
$headers[]="MIME-Version: 1.0";
$headers[]="Content-Type: text/html; charset=UTF-8";
}
else{
$headers[]="Content-Type: text/plain; charset=UTF-8";
}
$rc = mail($to_combined, $subject, $message, implode("\r\n", array_merge($headers, $additional_headers)));