diff options
author | Rouslan Placella <rouslan@placella.com> | 2012-06-02 21:06:11 +0400 |
---|---|---|
committer | Rouslan Placella <rouslan@placella.com> | 2012-06-03 02:59:46 +0400 |
commit | 9605deb78e54e20ceacbf47f3967f28907189615 (patch) | |
tree | eac572b0ccf7506178d9fb6c1e0627733aa46084 /server_privileges.php | |
parent | 8fe94907282a157e3e5d3b63faebfa9df98b5420 (diff) |
Fixed missing globals
Diffstat (limited to 'server_privileges.php')
-rw-r--r-- | server_privileges.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server_privileges.php b/server_privileges.php index 23ae8977a1..27bdf30c44 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -28,13 +28,15 @@ $get_params = array( 'dbname', 'hostname', 'initial', + 'old_username', + 'old_hostname', 'tablename', 'username', 'viewing_mode' ); foreach ($get_params as $one_get_param) { - if (isset($_GET[$one_get_param])) { - $GLOBALS[$one_get_param] = $_GET[$one_get_param]; + if (isset($_REQUEST[$one_get_param])) { + $GLOBALS[$one_get_param] = $_REQUEST[$one_get_param]; } } @@ -1425,7 +1427,7 @@ if (isset($_REQUEST['change_pw'])) { // similar logic in user_password.php $message = ''; - if ($nopass == 0 && isset($pma_pw) && isset($pma_pw2)) { + if (empty($_REQUEST['nopass']) && isset($pma_pw) && isset($pma_pw2)) { if ($pma_pw != $pma_pw2) { $message = PMA_Message::error(__('The passwords aren\'t the same!')); } elseif (empty($pma_pw) || empty($pma_pw2)) { |