fixed bug: undefined index with empty database in db structure view

This commit is contained in:
Sebastian Mendel
2006-01-17 09:31:17 +00:00
parent cde2c659b7
commit 60b69f7159
2 changed files with 19 additions and 13 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $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> 2006-01-16 Marc Delisle <lem9@users.sourceforge.net>
* server_privileges.php: typo * server_privileges.php: typo
* libraries/check_user_privileges.lib.php: bug #1406499, * libraries/check_user_privileges.lib.php: bug #1406499,

View File

@@ -243,6 +243,8 @@ function PMA_DBI_get_tables_full($database, $table = false,
$databases = array_map('addslashes', $database); $databases = array_map('addslashes', $database);
} }
$tables = array();
if ( PMA_MYSQL_INT_VERSION >= 50002 ) { if ( PMA_MYSQL_INT_VERSION >= 50002 ) {
// get table information from information_schema // get table information from information_schema
if ( $table ) { 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]; return $tables[$database];
} else { } else {
return $tables; return $tables;