bug 1170255, undefined index Field

This commit is contained in:
Marc Delisle
2005-03-25 12:39:34 +00:00
parent 4b69642dba
commit f4e758d0c6
2 changed files with 6 additions and 4 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-03-25 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties.inc.php: bug #1170255, undefined index: Field
2005-03-25 Alexander M. Turek <me@derrabus.de> 2005-03-25 Alexander M. Turek <me@derrabus.de>
* db_details_structure.php: Let's prefer separate icons over CSS 3 hacks * db_details_structure.php: Let's prefer separate icons over CSS 3 hacks
for marking a functionality as unavailable. for marking a functionality as unavailable.

View File

@@ -1,7 +1,7 @@
<?php <?php
/* $Id$ */ /* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4: // vim: expandtab sw=4 ts=4 sts=4:
error_reporting(E_ALL);
// Check parameters // Check parameters
require_once('./libraries/common.lib.php'); require_once('./libraries/common.lib.php');
PMA_checkParameters(array('db','table','action','num_fields')); PMA_checkParameters(array('db','table','action','num_fields'));
@@ -318,13 +318,12 @@ for ($i = 0 ; $i < $num_fields; $i++) {
$attribute = $submit_attribute; $attribute = $submit_attribute;
} }
// MySQL 4.1.2+ TIMESTAMP options // MySQL 4.1.2+ TIMESTAMP options
// (if on_update_current_timestamp is set, then it's TRUE) // (if on_update_current_timestamp is set, then it's TRUE)
if (isset($analyzed_sql[0]['create_table_fields'][$row['Field']]['on_update_current_timestamp'])) { if (isset($row['Field']) && isset($analyzed_sql[0]['create_table_fields'][$row['Field']]['on_update_current_timestamp'])) {
$attribute = 'ON UPDATE CURRENT_TIMESTAMP'; $attribute = 'ON UPDATE CURRENT_TIMESTAMP';
} }
if (isset($analyzed_sql[0]['create_table_fields'][$row['Field']]['default_current_timestamp'])) { if (isset($row['Field']) && isset($analyzed_sql[0]['create_table_fields'][$row['Field']]['default_current_timestamp'])) {
$default_current_timestamp = TRUE; $default_current_timestamp = TRUE;
} else { } else {
$default_current_timestamp = FALSE; $default_current_timestamp = FALSE;