Undefined index

This commit is contained in:
Alexander M. Turek
2005-06-22 15:50:23 +00:00
parent b43f76e8d0
commit 321bfbfb4f
2 changed files with 5 additions and 2 deletions

View File

@@ -5,7 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2005-06-22 Garvin Hicking
2005-06-22 Alexander M. Turek <me@derrabus.de>
* tbl_properties_structure.php: Undefined index.
2005-06-22 Garvin Hicking <rabustoldmethatiforgotmyemailaddress@supergarv.de>
* server_databases.php: Bug #1225315, wrong message displayed
when no databases were dropped.
* tbl_properties.inc.php: Patch #1225452, JS error for

View File

@@ -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'] = '';
}