diff --git a/ChangeLog b/ChangeLog index d0d34983e..bf1273cd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1828265 [privileges] No weird characters in generated password - bug #1759194 [import] open_basedir warning - bug #1793948 [parser] ROW_FORMAT incorrectly parsed +- undefined PMA_MYSQL_INT_VERSION when no default server is set 2.11.2.2 (2007-11-20) - bug #1835123 [security] fixed XSS vulnerability on login page, diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 5d1e955b5..e45db3655 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1226,7 +1226,7 @@ function PMA_profilingSupported() { // 5.0.37 has profiling but for example, 5.1.20 does not // (avoid a trip to the server for MySQL before 5.0.37) // and do not set a constant as we might be switching servers - if (PMA_MYSQL_INT_VERSION >= 50037 && PMA_DBI_fetch_value("SHOW VARIABLES LIKE 'profiling'")) { + if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION >= 50037 && PMA_DBI_fetch_value("SHOW VARIABLES LIKE 'profiling'")) { return true; } else { return false;