[Web] Fix for broken setting in quarantine (sender)

master
andryyy 2019-10-10 07:13:26 +02:00
parent ecce16a8ca
commit 3124226607
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 3 additions and 0 deletions

View File

@ -301,6 +301,9 @@ function quarantine($_action, $_data = null) {
if (!filter_var($_data['sender'], FILTER_VALIDATE_EMAIL)) { if (!filter_var($_data['sender'], FILTER_VALIDATE_EMAIL)) {
$sender = ''; $sender = '';
} }
else {
$sender = $_data['sender'];
}
$html = $_data['html_tmpl']; $html = $_data['html_tmpl'];
if ($max_age <= 0) { if ($max_age <= 0) {
$max_age = 365; $max_age = 365;