From 46039e814f7102f0ea24289a186d429b83af797c Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 28 Feb 2003 15:25:25 +0000 Subject: [PATCH] bug #691910 --- ChangeLog | 1 + server_privileges.php3 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8f83de90d..67943e2fe 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ 2003-02-28 Alexander M. Turek * Documentation.html: Fixed a typo. + * server_privileges.php3: Fixed bug #691910. 2003-02-28 Garvin Hicking * translators.html: Adjusted to same topmenu as Documentation.html. diff --git a/server_privileges.php3 b/server_privileges.php3 index de3bf379c..c69db4b92 100644 --- a/server_privileges.php3 +++ b/server_privileges.php3 @@ -1399,7 +1399,7 @@ if (empty($adduser) && empty($checkprivs)) { $row1 = PMA_mysql_fetch_array($res1, MYSQL_ASSOC); $sql_query = 'SELECT * FROM `db` WHERE "' . $checkprivs . '" LIKE `Db` AND NOT (`Select_priv` = "N" AND `Insert_priv` = "N" AND `Update_priv` = "N" AND `Delete_priv` = "N" AND `Create_priv` = "N" AND `Drop_priv` = "N" ' . (PMA_MYSQL_INT_VERSION >= 32211 ? 'AND `Grant_priv` = "N" ' : '') . 'AND `References_priv` = "N") ORDER BY `User` ASC, `Host` ASC;'; $res2 = PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), $sql_query); - $row2 = PMA_mysql_fetch_array($res1, MYSQL_ASSOC); + $row2 = PMA_mysql_fetch_array($res2, MYSQL_ASSOC); if ($row1 || $row2) { $found = TRUE; }