From 611e41a31b71f2be61ad1303a200ac6185e25803 Mon Sep 17 00:00:00 2001 From: Remi Date: Tue, 7 Feb 2017 10:20:33 +0100 Subject: [PATCH] bug fix: set success class to alert-success insted of alert-error after successful mailbox parameters update --- bureau/admin/mail_doedit.php | 5 ++++- bureau/admin/mail_list.php | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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
"; } else { - if (isset($error) && !empty($error)) { echo "

$error

"; } + if (isset($error) && !empty($error)) { + echo "

$error

"; + } else if (isset($success)) { + echo "

$success

"; +} + ?>