fix a bug about not defined $escaped_predef_types when altering a col in pg < 8.0 DEV_RMPHPSELF
authorioguix <ioguix>
Mon, 2 Jul 2007 10:23:01 +0000 (10:23 +0000)
committerioguix <ioguix>
Mon, 2 Jul 2007 10:23:01 +0000 (10:23 +0000)
tblproperties.php

index 0333f746cff65806d1871cfb5feb2091c509ae9f..6bd102b6010517f13d8675dcfcf0ec808b4c46b9 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tblproperties.php,v 1.72.2.1.2.1 2007/06/16 15:28:43 xzilla Exp $
+        * $Id: tblproperties.php,v 1.72.2.1.2.2 2007/07/02 10:23:01 ioguix Exp $
         */
 
        // Include application functions
                                        htmlspecialchars($_REQUEST['field']), "\" /></td>";
                                        
                                // Column type
+                               $escaped_predef_types = array(); // the JS escaped array elements
                                if ($data->hasAlterColumnType()) {
                                        // Fetch all available types
                                        $types = $data->getTypes(true, false, true);
                                        echo "<option value=\"[]\"", ($_REQUEST['array'] == '[]') ? ' selected="selected"' : '', ">[ ]</option>\n";
                                        echo "</select>";
                                        $predefined_size_types = array_intersect($data->predefined_size_types,array_keys($types_for_js));
-                                       $escaped_predef_types = array(); // the JS escaped array elements
                                        foreach($predefined_size_types as $value) {
                                                $escaped_predef_types[] = "'{$value}'";
                                        }