From f124554ab143286f556d28eb5455fe92c22ec30a Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 31 Mar 2007 12:29:05 +0000 Subject: [PATCH] unneeded test, thanks to Juergen Wind --- libraries/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index aca10a923..b89181c75 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -985,7 +985,7 @@ function PMA_showMessage($message, $sql_query = null) // Checks if the table needs to be repaired after a TRUNCATE query. // @todo what about $GLOBALS['display_query']??? // @todo this is REALLY the wrong place to do this - very unexpected here - if (strlen($GLOBALS['table']) && isset($GLOBALS['sql_query']) && strlen($GLOBALS['sql_query']) + if (strlen($GLOBALS['table']) && isset($GLOBALS['sql_query']) && $GLOBALS['sql_query'] == 'TRUNCATE TABLE ' . PMA_backquote($GLOBALS['table'])) { if (!isset($tbl_status)) { $result = @PMA_DBI_try_query('SHOW TABLE STATUS FROM ' . PMA_backquote($GLOBALS['db']) . ' LIKE \'' . PMA_sqlAddslashes($GLOBALS['table'], true) . '\'');