fix a bug about not defined $escaped_predef_types when altering a col in pg < 8.0
authorioguix <ioguix>
Mon, 2 Jul 2007 14:53:08 +0000 (14:53 +0000)
committerioguix <ioguix>
Mon, 2 Jul 2007 14:53:08 +0000 (14:53 +0000)
colproperties.php

index e51356fa13ee3455a44f1aa9e1e20f0c35158d0a..94f044ee44db5cd66974d55ca72f94ac9e69d9d1 100644 (file)
@@ -82,6 +82,7 @@
                                        htmlspecialchars($_REQUEST['field']), "\" /></td>\n";
                                        
                                // 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 "\t<option value=\"[]\"", ($_REQUEST['array'] == '[]') ? ' selected="selected"' : '', ">[ ]</option>\n";
                                        echo "</select></td>\n";
                                        $predefined_size_types = array_intersect($data->predefined_size_types, $types_for_js);
-                                       $escaped_predef_types = array(); // the JS escaped array elements
                                        foreach($predefined_size_types as $value) {
                                                $escaped_predef_types[] = "'{$value}'";
                                        }