diff --git a/tbl_properties_table_info.php3 b/tbl_properties_table_info.php3 index a58f15ff8..566b8c4b3 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 afef950fc..510fc7657 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