bug 451085

This commit is contained in:
Marc Delisle
2001-08-16 10:21:27 +00:00
parent 95f354a0b4
commit 7c35a94f5d
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-08-16 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php3, bug 451085 Can't assign NULL value to char(1)
2001-08-16 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_change.php3; tbl_replace.php3: fixed some of the bugs I've introduced
with my last patches.

View File

@@ -302,11 +302,12 @@ for ($i = 0; $i < mysql_num_rows($table_def); $i++) {
} // end else if
else {
$fieldsize = (($len > 40) ? 40 : $len);
$maxlength = (($len < 4) ? 4 : $len);
echo "\n";
?>
<td>
<?php echo $backup_field . "\n"; ?>
<input type="text" name="fields[<?php echo urlencode($field); ?>]" value="<?php echo $special_chars; ?>" size="<?php echo $fieldsize; ?>" maxlength="<?php echo $len; ?>" />
<input type="text" name="fields[<?php echo urlencode($field); ?>]" value="<?php echo $special_chars; ?>" size="<?php echo $fieldsize; ?>" maxlength="<?php echo $maxlength; ?>" />
</td>
<?php
}