fixes #7: show alert-info instead of alert-error when successfully changins sql users rights

This commit is contained in:
Remi 2016-03-03 14:35:57 +01:00
parent ad3f3b7d15
commit 911250a73f
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,7 @@ foreach($mysql->get_dblist() as $d){
$mysql->set_user_rights($id,$d['db'],$rights);
}
$error=_("The rights has been successfully applied to the user");
$info=_("The rights has been successfully applied to the user");
include("sql_users_list.php");
?>

View File

@ -38,6 +38,9 @@ $rdb=$mysql->get_dblist();
<hr id="topbar"/>
<br />
<?php
if (isset($info) && $info) {
echo "<p class=\"alert alert-info\">$info</p><p>&nbsp;</p>";
}
if (isset($error) && $error) {
echo "<p class=\"alert alert-danger\">$error</p><p>&nbsp;</p>";
}