fix a php notice about undefinied index tablespace for pg < 8.0 when creating a table...
authorioguix <ioguix>
Thu, 27 Dec 2007 18:28:36 +0000 (18:28 +0000)
committerioguix <ioguix>
Thu, 27 Dec 2007 18:28:36 +0000 (18:28 +0000)
tables.php

index 8384a3e17df85deafb221b85d44e5102bbd63819..329947f761c5d6295eda85ff6fccec46c3d09783 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tables.php,v 1.107 2007/12/16 01:30:14 ioguix Exp $
+        * $Id: tables.php,v 1.108 2007/12/27 18:28:36 ioguix Exp $
         */
 
        // Include application functions
                                return;
                        }
 
+                       if (!isset($_REQUEST['tablespace'])) $_REQUEST['tablespace'] = '';
+
                        $status = $data->createTableLike($_REQUEST['name'], $_REQUEST['like'], isset($_REQUEST['withdefaults']),
                                isset($_REQUEST['withconstraints']), isset($_REQUEST['withindexes']), $_REQUEST['tablespace']);
                        if ($status == 0) {