fixed bug: undefined index with empty database in db structure view
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2006-01-17 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* libraries/database_interface.lib.php:
|
||||
fixed bug: undefined index with empty database in db structure view
|
||||
|
||||
2006-01-16 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* server_privileges.php: typo
|
||||
* libraries/check_user_privileges.lib.php: bug #1406499,
|
||||
|
@@ -243,6 +243,8 @@ function PMA_DBI_get_tables_full($database, $table = false,
|
||||
$databases = array_map('addslashes', $database);
|
||||
}
|
||||
|
||||
$tables = array();
|
||||
|
||||
if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
|
||||
// get table information from information_schema
|
||||
if ( $table ) {
|
||||
@@ -362,7 +364,7 @@ function PMA_DBI_get_tables_full($database, $table = false,
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! is_array($database) ) {
|
||||
if ( ! is_array($database) && isset($tables[$database]) ) {
|
||||
return $tables[$database];
|
||||
} else {
|
||||
return $tables;
|
||||
|
Reference in New Issue
Block a user