From 911250a73f44bea9e37b7007c7407b41164a708e Mon Sep 17 00:00:00 2001 From: Remi Date: Thu, 3 Mar 2016 14:35:57 +0100 Subject: [PATCH] fixes #7: show alert-info instead of alert-error when successfully changins sql users rights --- bureau/admin/sql_users_dorights.php | 2 +- bureau/admin/sql_users_list.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bureau/admin/sql_users_dorights.php b/bureau/admin/sql_users_dorights.php index 69fb0f91..e0607968 100644 --- a/bureau/admin/sql_users_dorights.php +++ b/bureau/admin/sql_users_dorights.php @@ -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"); ?> diff --git a/bureau/admin/sql_users_list.php b/bureau/admin/sql_users_list.php index 3789f75e..6fc173b9 100644 --- a/bureau/admin/sql_users_list.php +++ b/bureau/admin/sql_users_list.php @@ -38,6 +38,9 @@ $rdb=$mysql->get_dblist();

$info

 

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

$error

 

"; }