diff --git a/adminer/foreign.inc.php b/adminer/foreign.inc.php index f59a6552..25f3776f 100644 --- a/adminer/foreign.inc.php +++ b/adminer/foreign.inc.php @@ -43,6 +43,7 @@ $target = ($TABLE === $row["table"] ? $source : array_keys(fields($row["table"])

+ : @@ -64,8 +65,9 @@ foreach ($row["source"] as $key => $val) { : "") + $on_actions, $row["on_delete"]); ?> : "") + $on_actions, $row["on_update"]); ?>

- ->

+ +> +

diff --git a/adminer/table.inc.php b/adminer/table.inc.php index a3677f11..742723ed 100644 --- a/adminer/table.inc.php +++ b/adminer/table.inc.php @@ -49,7 +49,7 @@ if ($fields) { echo "" . implode(", ", array_map('h', $foreign_key["source"])) . ""; echo "$link"; echo "(" . implode(", ", array_map('h', $foreign_key["target"])) . ")"; - echo "" . (!strlen($foreign_key["db"]) ? '' . lang('Alter') . '' : ' '); + echo '' . lang('Alter') . ''; } echo "\n"; }