undefined variable when creating a table that exists

This commit is contained in:
Marc Delisle
2007-10-06 20:03:52 +00:00
parent c52481b5f9
commit efa1b7f6aa
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
thanks to Alex Rambau thanks to Alex Rambau
- bug #1798786 [import] Wrong error message when a string contains semicolon - bug #1798786 [import] Wrong error message when a string contains semicolon
- bug #1807923 [login] Login with html entities in password fails - bug #1807923 [login] Login with html entities in password fails
- [core] Undefined variable when creating a table that exists
2.11.1.0 (2007-09-20) 2.11.1.0 (2007-09-20)

View File

@@ -728,7 +728,7 @@ function PMA_DBI_get_columns($database, $table, $full = false, $link = null)
$fields = PMA_DBI_fetch_result( $fields = PMA_DBI_fetch_result(
'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS 'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS
FROM ' . PMA_backquote($database) . '.' . PMA_backquote($table), FROM ' . PMA_backquote($database) . '.' . PMA_backquote($table),
'Fields', ($full ? null : 'Fields'), $link); 'Field', ($full ? null : 'Field'), $link);
if (! is_array($fields) || count($fields) < 1) { if (! is_array($fields) || count($fields) < 1) {
return false; return false;
} }