From b4563f74ac1635b930188104f8fbdfb7537b30f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 19 Dec 2002 21:09:33 +0000 Subject: [PATCH] Fixed undefined variable warning. --- server_privileges.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_privileges.php3 b/server_privileges.php3 index 5cd377d8e..942341161 100644 --- a/server_privileges.php3 +++ b/server_privileges.php3 @@ -161,7 +161,7 @@ if (!isset($username) && !isset($hostname)) { $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); if (!$res) { // the query failed! This may have two reasons: @@ -358,4 +358,4 @@ if (!isset($username) && !isset($hostname)) { */ require('./footer.inc.php3'); -?> \ No newline at end of file +?>