From 321bfbfb4ff312473730677e6feb94141ebe2cb7 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Wed, 22 Jun 2005 15:50:23 +0000 Subject: [PATCH] Undefined index --- ChangeLog | 5 ++++- tbl_properties_structure.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6afc9c7ff..8f18f1934 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,7 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ -2005-06-22 Garvin Hicking +2005-06-22 Alexander M. Turek + * tbl_properties_structure.php: Undefined index. + +2005-06-22 Garvin Hicking * server_databases.php: Bug #1225315, wrong message displayed when no databases were dropped. * tbl_properties.inc.php: Patch #1225452, JS error for diff --git a/tbl_properties_structure.php b/tbl_properties_structure.php index 5f9b0b68e..c9b88609e 100644 --- a/tbl_properties_structure.php +++ b/tbl_properties_structure.php @@ -250,7 +250,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { // here, we have a TIMESTAMP that SHOW FULL FIELDS reports as having the // NULL attribute, but SHOW CREATE TABLE says the contrary. Believe // the latter. - if ($analyzed_sql[0]['create_table_fields'][$row['Field']]['type'] == 'TIMESTAMP' && $analyzed_sql[0]['create_table_fields'][$row['Field']]['timestamp_not_null']) { + if (!empty($analyzed_sql[0]['create_table_fields'][$row['Field']]['type']) && $analyzed_sql[0]['create_table_fields'][$row['Field']]['type'] == 'TIMESTAMP' && $analyzed_sql[0]['create_table_fields'][$row['Field']]['timestamp_not_null']) { $row['Null'] = ''; }