Browse Source

Fix return message + remove double unset

Jaap Marcus 4 years ago
parent
commit
378eed430c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      web/add/mail/index.php

+ 1 - 2
web/add/mail/index.php

@@ -276,10 +276,9 @@ if (!empty($_POST['ok_acc'])) {
 
 
     // Flush field values on success
     // Flush field values on success
     if (empty($_SESSION['error_msg'])) {
     if (empty($_SESSION['error_msg'])) {
-        $_SESSION['ok_msg'] = sprintf(_('MAIL_ACCOUNT_CREATED_OK'),htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST[v_domain]),htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST[v_domain]));
+        $_SESSION['ok_msg'] = sprintf(_('MAIL_ACCOUNT_CREATED_OK'),htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST['v_domain']),htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST['v_domain']));
         unset($v_account);
         unset($v_account);
         unset($v_password);
         unset($v_password);
-        unset($v_password);
         unset($v_aliases);
         unset($v_aliases);
         unset($v_fwd);
         unset($v_fwd);
         unset($v_quota);
         unset($v_quota);