]> git.joonet.de Git - adminer.git/commitdiff
$target uses $row
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 14 Jul 2007 07:18:10 +0000 (07:18 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Sat, 14 Jul 2007 07:18:10 +0000 (07:18 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@171 7c3ca157-0c34-0410-bff1-cbf682f78f5c

foreign.inc.php

index 7c1aeec381f60f9b6f24dc36bbca402d40185634..13f758f4cb28fda5e1f9b60d29eb5db95efd30b2 100644 (file)
@@ -35,8 +35,6 @@ while ($row = $result->fetch_assoc()) {
        }
 }
 $result->free();
-$source = get_vals("SHOW COLUMNS FROM " . idf_escape($_GET["foreign"])); //! no text and blob
-$target = ($_GET["foreign"] === $row["table"] ? $source : get_vals("SHOW COLUMNS FROM " . idf_escape($row["table"])));
 
 if ($_POST) {
        $row = $_POST;
@@ -54,6 +52,9 @@ if ($_POST) {
 } else {
        $row = array("table" => $_GET["foreign"], "source" => array(""));
 }
+
+$source = get_vals("SHOW COLUMNS FROM " . idf_escape($_GET["foreign"])); //! no text and blob
+$target = ($_GET["foreign"] === $row["table"] ? $source : get_vals("SHOW COLUMNS FROM " . idf_escape($row["table"])));
 ?>
 <form action="" method="post">
 <p>