From: jakubvrana Date: Sat, 14 Jul 2007 07:18:10 +0000 (+0000) Subject: $target uses $row X-Git-Tag: v3.0.0~1337 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=aa14be064530e35eab3e451f902093b13f1aceea;p=adminer.git $target uses $row git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@171 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- diff --git a/foreign.inc.php b/foreign.inc.php index 7c1aeec3..13f758f4 100644 --- a/foreign.inc.php +++ b/foreign.inc.php @@ -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"]))); ?>