diff --git a/bureau/admin/mail_doedit.php b/bureau/admin/mail_doedit.php
index 6adad1f4..e0eff849 100644
--- a/bureau/admin/mail_doedit.php
+++ b/bureau/admin/mail_doedit.php
@@ -117,7 +117,10 @@ if (!$res=$mail->get_details($mail_id)) {
}
-if (!$error || !trim($error,"
")) $error=_("Your email has been edited successfully");
+if (!$error || !trim($error,"
")) {
+ unset($error);
+ $success=_("Your email has been edited successfully");
+}
$_REQUEST["domain_id"]=$dom->get_domain_byname($res["domain"]);
include("mail_list.php");
diff --git a/bureau/admin/mail_list.php b/bureau/admin/mail_list.php
index 114bd5b0..e93ffbde 100755
--- a/bureau/admin/mail_list.php
+++ b/bureau/admin/mail_list.php
@@ -60,7 +60,12 @@ if ($fatal) {
echo "
$error
"; } + if (isset($error) && !empty($error)) { + echo "$error
"; + } else if (isset($success)) { + echo "$success
"; +} + ?>