Browse Source

[Web] Fix missing return msg when resetting spam score

André 6 years ago
parent
commit
2ac664ceb7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      data/web/inc/functions.mailbox.inc.php

+ 5 - 0
data/web/inc/functions.mailbox.inc.php

@@ -1157,6 +1157,11 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
               $stmt->execute(array(
                 ':username' => $username
               ));
+              $_SESSION['return'][] = array(
+                'type' => 'success',
+                'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr),
+                'msg' => array('mailbox_modified', $username)
+              );
               continue;
             }
             $lowspamlevel	= explode(',', $_data['spam_score'])[0];