This commit is contained in:
Alexander M. Turek
2003-02-28 15:25:25 +00:00
parent 104ae0a4ba
commit 46039e814f
2 changed files with 2 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ $Source$
2003-02-28 Alexander M. Turek <rabus@users.sourceforge.net> 2003-02-28 Alexander M. Turek <rabus@users.sourceforge.net>
* Documentation.html: Fixed a typo. * Documentation.html: Fixed a typo.
* server_privileges.php3: Fixed bug #691910.
2003-02-28 Garvin Hicking <me@supergarv.de> 2003-02-28 Garvin Hicking <me@supergarv.de>
* translators.html: Adjusted to same topmenu as Documentation.html. * translators.html: Adjusted to same topmenu as Documentation.html.

View File

@@ -1399,7 +1399,7 @@ if (empty($adduser) && empty($checkprivs)) {
$row1 = PMA_mysql_fetch_array($res1, MYSQL_ASSOC); $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;'; $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); $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) { if ($row1 || $row2) {
$found = TRUE; $found = TRUE;
} }