Skip to content

Commit 7b4df68

Browse files
author
Marius Burkard
committed
ISPConfig coding guidelines
1 parent be2cd73 commit 7b4df68

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

server/plugins-available/mail_plugin.inc.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ function user_insert($event_name, $data) {
207207

208208
//* Send the welcome email message
209209
$domain = explode('@', $data["new"]["email"])[1];
210-
$html = False;
211-
if (file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html')) {
210+
$html = false;
211+
if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html')) {
212212
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html');
213-
$html = True;
214-
} elseif (file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html')) {
213+
$html = true;
214+
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html')) {
215215
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html');
216-
$html = True;
217-
} elseif (file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) {
216+
$html = true;
217+
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) {
218218
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt');
219219
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) {
220220
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt');
@@ -243,7 +243,7 @@ function user_insert($event_name, $data) {
243243
unset($tmp);
244244

245245
$mailHeaders = "MIME-Version: 1.0" . "\n";
246-
if ($html){
246+
if($html) {
247247
$mailHeaders .= "Content-Type: text/html; charset=utf-8" . "\n";
248248
$mailHeaders .= "Content-Transfer-Encoding: quoted-printable" . "\n";
249249
} else {

0 commit comments

Comments
 (0)