Răsfoiți Sursa

Fix return message + remove double unset

Jaap Marcus 4 ani în urmă
părinte
comite
378eed430c
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  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
     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_password);
-        unset($v_password);
         unset($v_aliases);
         unset($v_fwd);
         unset($v_quota);