From 288329402cf5f2f0d5e3645495b25174caa7b099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=ADlvio=20Soares=20Ribeiro=20J=C3=BAnior?= Date: Thu, 7 Apr 2011 11:29:10 +0200 Subject: [PATCH] Show error when adding new user which already exists --- server_privileges.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server_privileges.php b/server_privileges.php index 51127ced1..e43614360 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -890,6 +890,7 @@ if (isset($_REQUEST['adduser_submit']) || isset($_REQUEST['change_copy'])) { $message = PMA_Message::error(__('The user %s already exists!')); $message->addParam('[i]\'' . $username . '\'@\'' . $hostname . '\'[/i]'); $_REQUEST['adduser'] = true; + $_add_user_error = true; } else { $create_user_real = 'CREATE USER \'' . PMA_sqlAddslashes($username) . '\'@\'' . PMA_sqlAddslashes($hostname) . '\''; @@ -1385,7 +1386,7 @@ $link_export = '