fix a php notice when adding a col with a type without length
authorioguix <ioguix>
Fri, 28 Sep 2007 12:05:56 +0000 (12:05 +0000)
committerioguix <ioguix>
Fri, 28 Sep 2007 12:05:56 +0000 (12:05 +0000)
tblproperties.php

index 7929d6a33437f1ff5e43c786c85cb2f0e53f0766..ddffc64b4674e125347613b9941ae4926ae2228f 100644 (file)
@@ -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
                                        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']);