MySQL < 4.0.2 compatibility

This commit is contained in:
Marc Delisle
2006-03-14 17:37:28 +00:00
parent 8597a6aabf
commit e35b13a8a6
2 changed files with 2 additions and 1 deletions

View File

@@ -506,7 +506,7 @@ function PMA_displayPrivTable($db = '*', $table = '*', $submit = TRUE, $indent =
echo $spaces . ' </fieldset>' . "\n";
// The "Resource limits" box is not displayed for db-specific privs
if ($db == '*') {
if ($db == '*' && PMA_MYSQL_INT_VERSION >= 40002) {
echo $spaces . ' <fieldset>' . "\n"
. $spaces . ' <legend>' . $GLOBALS['strResourceLimits'] . '</legend>' . "\n"
. $spaces . ' <p><small><i>' . $GLOBALS['strZeroRemovesTheLimit'] . '</i></small></p>' . "\n"