From b881eee1413dbf413c1a12b48dae784dcbc7a461 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 3 Feb 2004 19:19:56 +0000 Subject: [PATCH] bug 879923 --- ChangeLog | 3 +++ tbl_change.php | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3e44e8e04..626065253 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-02-03 Marc Delisle + * tbl_change.php: bug 879923, NULL default value of DATETIME field + 2004-02-02 Marc Delisle * export.php: security fix, thanks to Cedric Cochin for the advisory * lang/slovak: Updated, thanks to Lubos Klokner (erkac). diff --git a/tbl_change.php b/tbl_change.php index 3a6e998d7..e698e34ba 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -277,7 +277,8 @@ foreach($loop_array AS $vrowcount => $vrow) { // value (the real default value will be set in the // Default value logic below) if ($row_table_def['Type'] == 'datetime' - && (!isset($row_table_def['Default']))) { + && (!isset($row_table_def['Default'])) + && (!is_null($row_table_def['Default']))) { // INSERT case if ($insert_mode) { if (isset($vrow)) {