More code cleanup in mail.php

This commit is contained in:
Retro_Guy 2021-11-13 07:32:12 +00:00
parent 1f9344bbe9
commit 001d703ce5
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ echo '</table>';
}
if (isset($_POST['sendMessage'])) {
if (isSet($_POST['to']) && $_POST['to'] != '' && isSet($_POST['from']) && $_POST['from'] != '' && isSet($_POST['message']) && $_POST['message'] != '') {
if (isset($_POST['to']) && $_POST['to'] != '' && isset($_POST['from']) && $_POST['from'] != '' && isset($_POST['message']) && $_POST['message'] != '') {
if(($to = get_config_value('aliases.conf', strtolower($_POST['to']))) == false) {
$to = strtolower($_POST['to']);
}