bug 1082680

This commit is contained in:
Marc Delisle
2005-01-07 14:34:17 +00:00
parent ede2a6ee5d
commit 829d0c80f2
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-01-07 Marc Delisle <lem9@users.sourceforge.net>
* tbl_addfield.php: bug #1082680, undefined $field_charset when adding
a FLOAT field in MySQL 4.1.x
2005-01-07 Michal Čihař <michal@cihar.com> 2005-01-07 Michal Čihař <michal@cihar.com>
* Documentation.html, tbl_change.php, tbl_properties.inc.php, * Documentation.html, tbl_change.php, tbl_properties.inc.php,
libraries/functions.js, libraries/tbl_change.js, libraries/functions.js, libraries/tbl_change.js,

View File

@@ -62,7 +62,7 @@ if (isset($submit_num_fields)) {
} }
if ($field_attribute[$i] != '') { if ($field_attribute[$i] != '') {
$query .= ' ' . $field_attribute[$i]; $query .= ' ' . $field_attribute[$i];
} else if (PMA_MYSQL_INT_VERSION >= 40100 && $field_charset[$i] != '') { } else if (PMA_MYSQL_INT_VERSION >= 40100 && isset($field_charset[$i]) && $field_charset[$i] != '') {
$query .= ' CHARACTER SET ' . $field_charset[$i]; $query .= ' CHARACTER SET ' . $field_charset[$i];
} }
if ($field_default[$i] != '') { if ($field_default[$i] != '') {