From 9c949b15db6205dce4c81ef672ef72b9e226c050 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 11 Feb 2004 14:30:04 +0000 Subject: [PATCH] bug 818654 --- ChangeLog | 3 +++ server_privileges.php | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 56f5041e9..0b0979cd7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-02-11 Marc Delisle + * server_privileges.php: bug 818654, password not copied + 2004-02-08 Marc Delisle * lang/spanish: Updated, thanks to Daniel Hinostroza (hinostroza). * lang/norwegian: Updated, thanks to Sven-Erik Andersen (sven-erik). diff --git a/server_privileges.php b/server_privileges.php index 942b9fbf7..b269c00bf 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -545,6 +545,12 @@ if (!empty($change_copy)) { } else { $row = PMA_DBI_fetch_assoc($res); extract($row, EXTR_OVERWRITE); + // Recent MySQL versions have the field "Password" in mysql.user, + // so the previous extract creates $Password but this script + // uses $password + if (!isset($password) && isset($Password)) { + $password=$Password; + } PMA_DBI_free_result($res); $queries = array(); }