bug fix: set success class to alert-success insted of alert-error after successful mailbox parameters update
This commit is contained in:
parent
4a2d1dcbdf
commit
611e41a31b
|
@ -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"]);
|
$_REQUEST["domain_id"]=$dom->get_domain_byname($res["domain"]);
|
||||||
include("mail_list.php");
|
include("mail_list.php");
|
||||||
|
|
|
@ -60,7 +60,12 @@ if ($fatal) {
|
||||||
echo "<div class=\"alert alert-danger\">$error</div>";
|
echo "<div class=\"alert alert-danger\">$error</div>";
|
||||||
} else {
|
} 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>
|
<table>
|
||||||
|
|
Loading…
Reference in New Issue