From 8151295829e0e7cb575e6ed676fe3568a29d86eb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 6 Jun 2022 21:05:15 +0300 Subject: [PATCH] Revert "trivia: coding style" This reverts commit 9e557501fae6f67f4dbd5cc121e1f45e5211c9a7. --- classes/mailer.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/classes/mailer.php b/classes/mailer.php index a15c8546b..dcb22e6d6 100644 --- a/classes/mailer.php +++ b/classes/mailer.php @@ -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)));