ソースを参照

Fixed Warning: Trying to access array offset on null in adminer/foreign.inc.php on line 87

adminerevo 1 年間 前
コミット
f9c33e6e19
1 ファイル変更1 行追加1 行削除
  1. 1 1
      adminer/foreign.inc.php

+ 1 - 1
adminer/foreign.inc.php

@@ -84,7 +84,7 @@ $j = 0;
 foreach ($row["source"] as $key => $val) {
 	echo "<tr>";
 	echo "<td>" . html_select("source[" . (+$key) . "]", array(-1 => "") + $source, $val, ($j == count($row["source"]) - 1 ? "foreignAddRow.call(this);" : 1), "label-source");
-	echo "<td>" . html_select("target[" . (+$key) . "]", $target, $row["target"][$key], 1, "label-target");
+	echo "<td>" . html_select("target[" . (+$key) . "]", $target, isset($row["target"][$key]) ? $row["target"][$key] : null, 1, "label-target");
 	$j++;
 }
 ?>