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'])) {