Florian Schaal
2016-05-26 52a8e7e2f53b23f41b40aa5bc5b35f338aaec3dd
prevent empty support messages in help module (Fixes: #3697)
1 files modified
2 ■■■ changed files
interface/web/help/support_message_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/help/support_message_edit.php
@@ -73,7 +73,7 @@
            }
            $confirmation_message .= "\n\n".$app->tform->lng('message_txt').": \"".$this->dataRecord['message']."\"";
            $confirmation_message .= "\n\nISPConfig: ".($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://').$_SERVER['HTTP_HOST'];
            $app->functions->mail($sender_email, $subject, $confirmation_message, $recipient_email);
            if ($this->dataRecord['subject'] != '' && $this->dataRecord['message'] != '') $app->functions->mail($sender_email, $subject, $confirmation_message, $recipient_email);
        } else {
            $app->tform->errorMessage .= $app->tform->lng("recipient_or_sender_email_address_not_valid_txt")."<br />";
        }