Fixed undefined variable warning.

This commit is contained in:
Michal Čihař
2002-12-19 21:09:33 +00:00
parent 90adf161e7
commit b4563f74ac

View File

@@ -161,7 +161,7 @@ if (!isset($username) && !isset($hostname)) {
$oldPrivTables = TRUE; $oldPrivTables = TRUE;
} }
} }
if (!$res || (PMA_MYSQL_INT_VERSION >= 32211 && PMA_MYSQL_INT_VERSION < 40002)) { if (!isset($res) || empty($res) || (PMA_MYSQL_INT_VERSION >= 32211 && PMA_MYSQL_INT_VERSION < 40002)) {
$res = PMA_mysql_query('SELECT `User`, `Host`, IF(`Password` = "", "N", "Y") AS "Password", `Select_priv`, `Insert_priv`, `Update_priv`, `Delete_priv`, `Index_priv`, `Alter_priv`, `Create_priv`, `Drop_priv`, `Grant_priv`, `References_priv`, `Reload_priv`, `Shutdown_priv`, `Process_priv`, `File_priv` FROM `user`;', $userlink); $res = PMA_mysql_query('SELECT `User`, `Host`, IF(`Password` = "", "N", "Y") AS "Password", `Select_priv`, `Insert_priv`, `Update_priv`, `Delete_priv`, `Index_priv`, `Alter_priv`, `Create_priv`, `Drop_priv`, `Grant_priv`, `References_priv`, `Reload_priv`, `Shutdown_priv`, `Process_priv`, `File_priv` FROM `user`;', $userlink);
if (!$res) { if (!$res) {
// the query failed! This may have two reasons: // the query failed! This may have two reasons:
@@ -358,4 +358,4 @@ if (!isset($username) && !isset($hostname)) {
*/ */
require('./footer.inc.php3'); require('./footer.inc.php3');
?> ?>