From 7e29a2c60e218f0f234aabdd162e7782fea37f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 23 Mar 2009 15:17:22 +0000 Subject: [PATCH] Fix typo. --- tbl_relation.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tbl_relation.php b/tbl_relation.php index a4cac0dd1..a9d6a6f85 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -92,8 +92,8 @@ if ($cfgRelation['displaywork']) { $disp = PMA_getDisplayField($db, $table); } -// will be used in the logic for internal relations and foreign keys: -$me_fields_name +// will be used in the logic for internal relations and foreign keys: +$me_fields_name = isset($_REQUEST['fields_name']) ? $_REQUEST['fields_name'] : null; @@ -103,7 +103,7 @@ if (isset($destination) && $cfgRelation['relwork']) { foreach ($destination as $master_field_md5 => $foreign_string) { $upd_query = false; - + // Map the fieldname's md5 back to its real name $master_field = $me_fields_name[$master_field_md5];