bug fix: set success class to alert-success insted of alert-error after successful mailbox parameters update

This commit is contained in:
Remi 2017-02-07 10:20:33 +01:00
parent 4a2d1dcbdf
commit 611e41a31b
2 changed files with 10 additions and 2 deletions

View File

@ -117,7 +117,10 @@ if (!$res=$mail->get_details($mail_id)) {
}
if (!$error || !trim($error,"<br />")) $error=_("Your email has been edited successfully");
if (!$error || !trim($error,"<br />")) {
unset($error);
$success=_("Your email has been edited successfully");
}
$_REQUEST["domain_id"]=$dom->get_domain_byname($res["domain"]);
include("mail_list.php");

View File

@ -60,7 +60,12 @@ if ($fatal) {
echo "<div class=\"alert alert-danger\">$error</div>";
} else {
if (isset($error) && !empty($error)) { echo "<p class='alert alert-danger'>$error</p>"; }
if (isset($error) && !empty($error)) {
echo "<p class='alert alert-danger'>$error</p>";
} else if (isset($success)) {
echo "<p class=\"alert alert-success\">$success</p>";
}
?>
<table>