From f37a878b62fdbb9664dca3ca946067f830b8bc57 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 21 Aug 2019 14:19:48 +0200 Subject: [PATCH] Do not display error for foreign keys to other databases --- adminer/foreign.inc.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/adminer/foreign.inc.php b/adminer/foreign.inc.php index c87728e6..811eb64b 100644 --- a/adminer/foreign.inc.php +++ b/adminer/foreign.inc.php @@ -48,17 +48,18 @@ if ($_POST) { $row["table"] = $TABLE; $row["source"] = array(""); } - -$source = array_keys(fields($TABLE)); //! no text and blob -$target = ($TABLE === $row["table"] ? $source : array_keys(fields($row["table"]))); -$referencable = array_keys(array_filter(table_status('', true), 'fk_support')); ?>

- -: - +