From 4e66babab7e29fb922fc22df7405a5c3ac8e33e4 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 7 Apr 2008 16:22:07 +0000 Subject: [PATCH] undefined variable row on table creation, since the new logic for BIT values --- libraries/tbl_properties.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libraries/tbl_properties.inc.php b/libraries/tbl_properties.inc.php index d9e275376..c71bc23d7 100644 --- a/libraries/tbl_properties.inc.php +++ b/libraries/tbl_properties.inc.php @@ -191,11 +191,12 @@ 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. $ci = 0; // Everytime a cell shall be left out the STRG-jumping feature, $ci_offset