Browse Source

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

andryyy 5 năm trước cách đây
mục cha
commit
3124226607

+ 3 - 0
data/web/inc/functions.quarantine.inc.php

@@ -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;