diff --git a/ChangeLog b/ChangeLog index 82fe06a5b..e7257ecaf 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-11-11 Alexander M. Turek + * libaries/common.lib.php3: Fixed bug #?????? (Error when modifying table + keys). --- Please insert the correct bug id as soon as SF is up again :o) + 2002-11-11 Marc Delisle * libraries/sqlparser.lib.php3: LEFT JOIN ... USING * libraries/sqlparser.lib.php3: bug 636575 (double and single quotes) diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 0d24f4037..fdb86640b 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1104,7 +1104,7 @@ if (typeof(document.getElementById) != 'undefined' // Checks if the table needs to be repaired after a TRUNCATE query. if (PMA_MYSQL_INT_VERSION >= 40000 - && isset($GLOBALS['table']) + && isset($GLOBALS['table']) && isset($GLOBALS['sql_query']) && $GLOBALS['sql_query'] == 'TRUNCATE TABLE ' . PMA_backquote($GLOBALS['table'])) { if (!isset($tbl_status)) { $result = @PMA_mysql_query('SHOW TABLE STATUS FROM ' . PMA_backquote($GLOBALS['db']) . ' LIKE \'' . PMA_sqlAddslashes($GLOBALS['table'], TRUE) . '\'');