From: ioguix Date: Mon, 2 Jul 2007 10:23:01 +0000 (+0000) Subject: fix a bug about not defined $escaped_predef_types when altering a col in pg < 8.0 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=refs%2Fheads%2FDEV_RMPHPSELF;p=phppgadmin.git fix a bug about not defined $escaped_predef_types when altering a col in pg < 8.0 --- diff --git a/tblproperties.php b/tblproperties.php index 0333f746..6bd102b6 100644 --- a/tblproperties.php +++ b/tblproperties.php @@ -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 @@ -407,6 +407,7 @@ htmlspecialchars($_REQUEST['field']), "\" />"; // Column type + $escaped_predef_types = array(); // the JS escaped array elements if ($data->hasAlterColumnType()) { // Fetch all available types $types = $data->getTypes(true, false, true); @@ -435,7 +436,6 @@ echo "\n"; echo ""; $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}'"; }