mirror of
https://github.com/vrana/adminer.git
synced 2025-08-29 01:00:07 +02:00
Don't link NULL foreign key values
This commit is contained in:
@@ -370,7 +370,7 @@ if (!$columns && support("table")) {
|
||||
if (preg_match('~blob|bytea|raw|file~', $field["type"]) && $val != "") {
|
||||
$link = ME . 'download=' . urlencode($TABLE) . '&field=' . urlencode($key) . $unique_idf;
|
||||
}
|
||||
if (!$link) { // link related items
|
||||
if (!$link && $val !== null) { // link related items
|
||||
foreach ((array) $foreign_keys[$key] as $foreign_key) {
|
||||
if (count($foreign_keys[$key]) == 1 || end($foreign_key["source"]) == $key) {
|
||||
$link = "";
|
||||
|
Reference in New Issue
Block a user