diff options
author | ioguix | 2007-10-17 19:07:22 +0000 |
---|---|---|
committer | ioguix | 2007-10-17 19:07:22 +0000 |
commit | 1f27a0f86c96fcb3db32d47f492b37529c49c834 (patch) | |
tree | 69d9830de5f39befc9a4dbd7e62c66e9aba3f4b2 | |
parent | 87dd8310f35ac28d77398dd8c95fcafa32ceeae9 (diff) |
fix for #1756926
-rw-r--r-- | colproperties.php | 1 | ||||
-rw-r--r-- | tblproperties.php | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/colproperties.php b/colproperties.php index e1601b0a..8c68db0b 100644 --- a/colproperties.php +++ b/colproperties.php @@ -151,6 +151,7 @@ return; } + if (!isset($_REQUEST['length'])) $_REQUEST['length'] = ''; $status = $data->alterColumn($_REQUEST['table'], $_REQUEST['column'], $_REQUEST['field'], isset($_REQUEST['notnull']), isset($_REQUEST['oldnotnull']), $_REQUEST['default'], $_REQUEST['olddefault'], diff --git a/tblproperties.php b/tblproperties.php index 9e6d03ac..68464bb0 100644 --- a/tblproperties.php +++ b/tblproperties.php @@ -3,7 +3,7 @@ /** * List tables in a database * - * $Id: tblproperties.php,v 1.72.2.3 2007/07/11 07:59:27 ioguix Exp $ + * $Id: tblproperties.php,v 1.72.2.4 2007/10/17 19:07:22 ioguix Exp $ */ // Include application functions @@ -321,7 +321,8 @@ 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']); |