sometimes undefined

This commit is contained in:
Marc Delisle
2002-03-14 13:51:39 +00:00
parent d5a817b4cf
commit 2405524653
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-03-14 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php3, PMA_MYSQL_INT_VERSION is not yet defined
before the connection
2002-03-13 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php3: bug 528961 safe_show_database

View File

@@ -540,7 +540,8 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
else {
// ... first checks whether the "safe_show_database"
// is on or not (if MYSQL supports this)
if (PMA_MYSQL_INT_VERSION >= 32330) {
if (defined('PMA_MYSQL_INT_VERSION') &&
PMA_MYSQL_INT_VERSION >= 32330) {
$local_query = 'SHOW VARIABLES LIKE \'safe_show_database\'';
$rs = mysql_query($local_query, $dbh); // Debug: or PMA_mysqlDie('', $local_query, FALSE);
$is_safe_show_dbs = mysql_result($rs, 0, 'Value');