From 09fa9046f378af430cf32cb3896d85a0f886724e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 8 Feb 2009 14:02:04 +0000 Subject: [PATCH] showtable undefined after table creation --- tbl_structure.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbl_structure.php b/tbl_structure.php index 9516e64cf..b986de168 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -586,6 +586,10 @@ echo '
' . "\n"; // Joshua Nye to get valid // statistics whatever is the table type if ($cfg['ShowStats']) { + if (empty($showtable)) { + $showtable = PMA_Table::sGetStatusInfo($GLOBALS['db'], $GLOBALS['table'], null, true); + } + $nonisam = false; $is_innodb = (isset($showtable['Type']) && $showtable['Type'] == 'InnoDB'); if (isset($showtable['Type']) && !preg_match('@ISAM|HEAP@i', $showtable['Type'])) {