showtable undefined after table creation

This commit is contained in:
Marc Delisle
2009-02-08 14:02:04 +00:00
parent 8ccd5b9eb5
commit 09fa9046f3

View File

@@ -586,6 +586,10 @@ echo '<div id="tablestatistics">' . "\n";
// Joshua Nye <josh at boxcarmedia.com> 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'])) {