diff --git a/adminer/foreign.inc.php b/adminer/foreign.inc.php
index 75a909e9..033f9a29 100644
--- a/adminer/foreign.inc.php
+++ b/adminer/foreign.inc.php
@@ -84,7 +84,7 @@ $j = 0;
foreach ($row["source"] as $key => $val) {
echo "
";
echo "" . html_select("source[" . (+$key) . "]", array(-1 => "") + $source, $val, ($j == count($row["source"]) - 1 ? "foreignAddRow.call(this);" : 1), "label-source");
- echo " | " . html_select("target[" . (+$key) . "]", $target, $row["target"][$key], 1, "label-target");
+ echo " | " . html_select("target[" . (+$key) . "]", $target, isset($row["target"][$key]) ? $row["target"][$key] : null, 1, "label-target");
$j++;
}
?>
|