diff --git a/tbl_printview.php b/tbl_printview.php index f6473d2018..78bb961015 100644 --- a/tbl_printview.php +++ b/tbl_printview.php @@ -143,8 +143,8 @@ foreach ($the_tables as $key => $table) { echo '
'; foreach ($columns as $row) { $extracted_columnspec = PMA_Util::extractColumnSpec($row['Type']); - $type = $extracted_columnspec['print_type']; - $attribute = $extracted_columnspec['attribute']; + $type = $extracted_columnspec['print_type']; + $attribute = $extracted_columnspec['attribute']; if (! isset($row['Default'])) { if ($row['Null'] != '' && $row['Null'] != 'NO') { @@ -164,7 +164,7 @@ foreach ($the_tables as $key => $table) { * but based on SHOW CREATE TABLE because information_schema * cannot be trusted in this case (MySQL bug) */ - if (!empty($analyzed_sql[0]['create_table_fields'][$field_name]['type']) + if (! empty($analyzed_sql[0]['create_table_fields'][$field_name]['type']) && $analyzed_sql[0]['create_table_fields'][$field_name]['type'] == 'TIMESTAMP' && $analyzed_sql[0]['create_table_fields'][$field_name]['timestamp_not_null'] ) { diff --git a/tbl_relation.php b/tbl_relation.php index 477c30180a..1256fda790 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -69,8 +69,9 @@ $options_array = array( * * @access public */ -function PMA_generate_dropdown($dropdown_question, $select_name, $choices, $selected_value) -{ +function PMA_generate_dropdown( + $dropdown_question, $select_name, $choices, $selected_value +) { echo htmlspecialchars($dropdown_question) . ' '; echo '