undefined variable row on table creation, since the new logic for BIT values

This commit is contained in:
Marc Delisle
2008-04-07 16:22:07 +00:00
parent 87e04a80f5
commit 2b65e7453c

View File

@@ -234,9 +234,11 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
$row = $fields_meta[$i];
}
$type_and_length = PMA_extract_type_length($row['Type']);
if ($type_and_length['type'] == 'bit') {
$row['Default'] = PMA_printable_bit_value($row['Default'], $type_and_length['length']);
if (isset($row) && isset($row['Type'])) {
$type_and_length = PMA_extract_type_length($row['Type']);
if ($type_and_length['type'] == 'bit') {
$row['Default'] = PMA_printable_bit_value($row['Default'], $type_and_length['length']);
}
}
// Cell index: If certain fields get left out, the counter shouldn't chage.