From a077c67e6db246ecde8b735279b134d22f54c9ee Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 24 Jul 2002 18:11:00 +0000 Subject: [PATCH] for Loic --- tbl_properties_table_info.php3 | 1 + tbl_relation.php3 | 25 ++++++++++++++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/tbl_properties_table_info.php3 b/tbl_properties_table_info.php3 index a58f15ff89..566b8c4b3e 100755 --- a/tbl_properties_table_info.php3 +++ b/tbl_properties_table_info.php3 @@ -56,4 +56,5 @@ if (!empty($show_comment)) { diff --git a/tbl_relation.php3 b/tbl_relation.php3 index afef950fcd..510fc76571 100644 --- a/tbl_relation.php3 +++ b/tbl_relation.php3 @@ -4,9 +4,10 @@ /** * Gets some core libraries - */ - /* i am including part of the tbl_properties stuff which will complain if it is - not being told what part of the tbl_properties is calling it, so i set this variable empty: + * + * I am including part of the tbl_properties stuff which will complain if it is + * not being told what part of the tbl_properties is calling it, so i set this + * variable empty: */ $sub_part=''; @@ -168,18 +169,20 @@ if ($cfgRelation['relwork']) { $selectboxall[$field_full] = $field_v; } } // end if (mysql_num_rows) - // Mike Beck 24.07.02: i've been asked to add all keys of the current table Bug 574851 - } else if ($curr_table[0] == $table) { + // Mike Beck - 24.07.02: i've been asked to add all keys of the + // current table (see bug report #574851) + } + else if ($curr_table[0] == $table) { $fi_query = 'SHOW KEYS FROM ' . PMA_backquote($curr_table[0]); $fi_rs = PMA_mysql_query($fi_query) or PMA_mysqlDie('', $fi_query, '', $err_url_0); if ($fi_rs && mysql_num_rows($fi_rs) > 0) { while ($curr_field = PMA_mysql_fetch_array($fi_rs)) { - $field_full = $db . '.' .$curr_field['Table'] . '.' . $curr_field['Column_name']; - $field_v = $curr_field['Table'] . '->' . $curr_field['Column_name']; - if (isset($field_full) && isset($field_v)) { - $selectboxall[$field_full] = $field_v; - } - } + $field_full = $db . '.' . $curr_field['Table'] . '.' . $curr_field['Column_name']; + $field_v = $curr_field['Table'] . '->' . $curr_field['Column_name']; + if (isset($field_full) && isset($field_v)) { + $selectboxall[$field_full] = $field_v; + } + } // end while } // end if (mysql_num_rows) } } // end while over tables -- 2.11.4.GIT