From eed908b9ffc0389b5e2a0903847e4a7c407f291f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 7 Apr 2005 17:12:54 +0000 Subject: [PATCH] bug #1176896, undefined variable --- tbl_properties.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tbl_properties.inc.php b/tbl_properties.inc.php index 760390c14..6e11faa00 100644 --- a/tbl_properties.inc.php +++ b/tbl_properties.inc.php @@ -2,7 +2,7 @@ /* $Id$ */ // vim: expandtab sw=4 ts=4 sts=4: // Check parameters - +error_reporting(E_ALL); require_once('./libraries/common.lib.php'); PMA_checkParameters(array('db','table','action','num_fields')); @@ -344,7 +344,7 @@ for ($i = 0 ; $i < $num_fields; $i++) { $attribute = 'ON UPDATE CURRENT_TIMESTAMP'; } if ((isset($row['Field']) && isset($analyzed_sql[0]['create_table_fields'][$row['Field']]['default_current_timestamp'])) - || $submit_default_current_timestamp ) { + || (isset($submit_default_current_timestamp) && $submit_default_current_timestamp) ) { $default_current_timestamp = TRUE; } else { $default_current_timestamp = FALSE;