sometimes undefined
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$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>
|
2002-03-13 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/common.lib.php3: bug 528961 safe_show_database
|
* libraries/common.lib.php3: bug 528961 safe_show_database
|
||||||
|
|
||||||
|
@@ -540,7 +540,8 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
|
|||||||
else {
|
else {
|
||||||
// ... first checks whether the "safe_show_database"
|
// ... first checks whether the "safe_show_database"
|
||||||
// is on or not (if MYSQL supports this)
|
// 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\'';
|
$local_query = 'SHOW VARIABLES LIKE \'safe_show_database\'';
|
||||||
$rs = mysql_query($local_query, $dbh); // Debug: or PMA_mysqlDie('', $local_query, FALSE);
|
$rs = mysql_query($local_query, $dbh); // Debug: or PMA_mysqlDie('', $local_query, FALSE);
|
||||||
$is_safe_show_dbs = mysql_result($rs, 0, 'Value');
|
$is_safe_show_dbs = mysql_result($rs, 0, 'Value');
|
||||||
|
Reference in New Issue
Block a user