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

This commit is contained in:
adminerevo 2024-03-07 20:53:15 +01:00
parent b3ebf738aa
commit f9c33e6e19

View file

@ -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++;
}
?>