Skip to content

Commit 52a8e7e

Browse files
author
Florian Schaal
committed
prevent empty support messages in help module (Fixes: #3697)
1 parent 812da3d commit 52a8e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/help/support_message_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function onSubmit()
7373
}
7474
$confirmation_message .= "\n\n".$app->tform->lng('message_txt').": \"".$this->dataRecord['message']."\"";
7575
$confirmation_message .= "\n\nISPConfig: ".($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://').$_SERVER['HTTP_HOST'];
76-
$app->functions->mail($sender_email, $subject, $confirmation_message, $recipient_email);
76+
if ($this->dataRecord['subject'] != '' && $this->dataRecord['message'] != '') $app->functions->mail($sender_email, $subject, $confirmation_message, $recipient_email);
7777
} else {
7878
$app->tform->errorMessage .= $app->tform->lng("recipient_or_sender_email_address_not_valid_txt")."<br />";
7979
}

0 commit comments

Comments
 (0)