diff --git a/bureau/admin/sql_users_password.php b/bureau/admin/sql_users_password.php index d31da416..977ac03b 100644 --- a/bureau/admin/sql_users_password.php +++ b/bureau/admin/sql_users_password.php @@ -41,7 +41,7 @@ getFields($fields); get_user_dblist($id); if (!$r) { - $error=_("This user doesn't exist"); + $error=$err->errstr(); } if (! empty($error) ) { diff --git a/bureau/admin/sql_users_rights.php b/bureau/admin/sql_users_rights.php index cb84d479..685c3478 100644 --- a/bureau/admin/sql_users_rights.php +++ b/bureau/admin/sql_users_rights.php @@ -34,15 +34,19 @@ $fields = array ( "id" => array ("request", "string", ""), ); getFields($fields); - -$r=$mysql->get_user_dblist($id); ?>
"; +$r=$mysql->get_user_dblist($id); +if (!$r) { + $error=$err->errstr(); +} + +if (!empty($error)) { + echo "
$error
"; + require_once('foot.php'); } if ($r) {