From 7b5580a29d86d52cb1b9b8f893ab2c4abc683669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 5 Jan 2005 13:01:23 +0000 Subject: [PATCH] Fix changning table parameters if it has no auto increment (bug #1096246). --- ChangeLog | 4 ++++ tbl_properties_operations.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 511740d7b..cc0f9941e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-01-05 Michal Čihař + * tbl_properties_operations.php: Fix changning table parameters if it has + no auto increment (bug #1096246). + 2005-01-04 Alexander M. Turek * lang/german-*.inc.php: - Updates and small corrections; diff --git a/tbl_properties_operations.php b/tbl_properties_operations.php index f88354b31..6f6ebfba6 100644 --- a/tbl_properties_operations.php +++ b/tbl_properties_operations.php @@ -52,7 +52,7 @@ if (isset($submitoptions)) { . (isset($pack_keys) ? ' pack_keys=1': ' pack_keys=0') . (isset($checksum) ? ' checksum=1': ' checksum=0') . (isset($delay_key_write) ? ' delay_key_write=1': ' delay_key_write=0') - . (isset($auto_increment) ? ' auto_increment=' . PMA_sqlAddslashes($auto_increment) : ''); + . (!empty($auto_increment) ? ' auto_increment=' . PMA_sqlAddslashes($auto_increment) : ''); $result = PMA_DBI_query($sql_query); $message = $strSuccess; }