diff --git a/libraries/Table.class.php b/libraries/Table.class.php
index 82cc43c68..c7a9fb226 100644
--- a/libraries/Table.class.php
+++ b/libraries/Table.class.php
@@ -299,10 +299,10 @@ class PMA_Table {
}
if ($null !== false) {
- if (!empty($null)) {
- $query .= ' NOT NULL';
- } else {
+ if ($null == 'NULL') {
$query .= ' NULL';
+ } else {
+ $query .= ' NOT NULL';
}
}
@@ -331,7 +331,7 @@ class PMA_Table {
if (!empty($extra)) {
$query .= ' ' . $extra;
// Force an auto_increment field to be part of the primary key
- // even if user did not tick the PK box;
+ // even if user did not tick the PK box;
// but the PK could contain other columns so do not append
// a PRIMARY KEY clause, just add a member to $field_primary
if ($extra == 'AUTO_INCREMENT') {
diff --git a/libraries/tbl_properties.inc.php b/libraries/tbl_properties.inc.php
index e035d019c..31e0c5550 100644
--- a/libraries/tbl_properties.inc.php
+++ b/libraries/tbl_properties.inc.php
@@ -1,6 +1,7 @@
';
+ $content_cells[$i][$ci] .= "\n" . '';
$ci++;
- $content_cells[$i][$ci] = '';
+ $content_cells[$i][$ci] = "\n" . '';
} else {
$content_cells[$i][$ci] = '';
}
@@ -296,15 +293,15 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
$zerofill = stristr($row['Type'], 'zerofill');
}
- $content_cells[$i][$ci] .= "\n" . '' . "\n";
+ $content_cells[$i][$ci] .= "\n" . '' . "\n";
$ci++;
$tmp_collation = empty($row['Collation']) ? null : $row['Collation'];
- $content_cells[$i][$ci] = PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'field_collation[]', 'field_' . $i . '_' . ($ci - $ci_offset), $tmp_collation, FALSE);
+ $content_cells[$i][$ci] = PMA_generateCharsetDropdownBox(PMA_CSDROPDOWN_COLLATION, 'field_collation[' . $i . ']', 'field_' . $i . '_' . ($ci - $ci_offset), $tmp_collation, FALSE);
unset($tmp_collation);
$ci++;
- $content_cells[$i][$ci] = '