diff --git a/server_privileges.php3 b/server_privileges.php3 index 19bfb926b..27cbb33c3 100644 --- a/server_privileges.php3 +++ b/server_privileges.php3 @@ -66,7 +66,7 @@ function PMA_extractPrivInfo($row = '', $enableHTML = FALSE) } else { $privs[] = 'USAGE'; } - } else if ($allPrivileges && isset($GLOBALS['grant_count']) && count($privs) == $GLOBALS['grant_count']) { + } else if ($allPrivileges && (!isset($GLOBALS['grant_count']) || count($privs) == $GLOBALS['grant_count'])) { if ($enableHTML) { $privs = array('ALL PRIVILEGES'); } else {