From 6d33933e73f763982af6ffa2b6656c4ee5c8c03e Mon Sep 17 00:00:00 2001 From: ioguix Date: Fri, 28 Sep 2007 12:05:56 +0000 Subject: [PATCH] fix a php notice when adding a col with a type without length --- tblproperties.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tblproperties.php b/tblproperties.php index 7929d6a3..ddffc64b 100644 --- a/tblproperties.php +++ b/tblproperties.php @@ -3,7 +3,7 @@ /** * List tables in a database * - * $Id: tblproperties.php,v 1.85 2007/09/13 13:41:01 ioguix Exp $ + * $Id: tblproperties.php,v 1.86 2007/09/28 12:05:56 ioguix Exp $ */ // Include application functions @@ -316,7 +316,7 @@ doAddColumn($lang['strcolneedsname']); return; } - + if (!isset($_POST['length'])) $_POST['length'] = ''; $status = $data->addColumn($_POST['table'], $_POST['field'], $_POST['type'], $_POST['array'] != '', $_POST['length'], isset($_POST['notnull']), $_POST['default'], $_POST['comment']); -- 2.39.5