Fix Warning: Undefined index: length in /usr/local/apache1.33-php4.1/htdocs/webdb...
authorxzilla <xzilla>
Mon, 5 Feb 2007 19:48:06 +0000 (19:48 +0000)
committerxzilla <xzilla>
Mon, 5 Feb 2007 19:48:06 +0000 (19:48 +0000)
Occurs when create a table or adding a column with no length specifications

tables.php

index 5f6e557973cc9792edd699c0c71a40eb5d788456..421f41e2722713fd458e0e47e1b715b6df9f1045 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tables.php,v 1.85 2007/01/03 15:35:42 soranzo Exp $
+        * $Id: tables.php,v 1.86 2007/02/05 19:48:06 xzilla Exp $
         */
 
        // Include application functions
                                if (!isset($_REQUEST['notnull'])) $_REQUEST['notnull'] = array();
                                if (!isset($_REQUEST['uniquekey'])) $_REQUEST['uniquekey'] = array();
                                if (!isset($_REQUEST['primarykey'])) $_REQUEST['primarykey'] = array();
+                               if (!isset($_REQUEST['length'])) $_REQUEST['length'] = array();
                                // Default tablespace to null if it isn't set
                                if (!isset($_REQUEST['spcname'])) $_REQUEST['spcname'] = null;