Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2006-03-14 20:37:28 +0300
committerMarc Delisle <marc@infomarc.info>2006-03-14 20:37:28 +0300
commite35b13a8a6772b9399e6f56370b510c89902bd05 (patch)
tree3e8a414b687c1e66bed79d9806f47c11d5c6f55c
parent8597a6aabf0d20b121ebad92ae3e9b0389f41c7e (diff)
MySQL < 4.0.2 compatibility
-rwxr-xr-xChangeLog1
-rw-r--r--server_privileges.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e1ef65b90..d8b9c8dc7a 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ $Source$
2006-03-14 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php: bug #1449715, loading of binary data very slow
+ * server_privileges.php: compatibility with MySQL < 4.0.2
2006-03-13 Marc Delisle <lem9@users.sourceforge.net>
* libraries/Config.class.php, /common.lib.php: bug #1445120,
diff --git a/server_privileges.php b/server_privileges.php
index a039f423cc..5482f1e37f 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -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"