From 2b65e7453c50435b1362f9e3137e75fc43af8515 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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/tbl_properties.inc.php b/libraries/tbl_properties.inc.php index 58ce8c425..f5b2ec440 100644 --- a/libraries/tbl_properties.inc.php +++ b/libraries/tbl_properties.inc.php @@ -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.