Просмотр исходного кода

Fix return message + remove double unset

Jaap Marcus 4 лет назад
Родитель
Сommit
378eed430c
1 измененных файлов с 1 добавлено и 2 удалено
  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);