bug #1977046, no table pagination; revert of revision 11247

This commit is contained in:
Marc Delisle
2008-05-29 16:41:20 +00:00
parent 0fcc6cd705
commit d85d7f82ef

View File

@@ -202,6 +202,9 @@ if (! isset($sot_ready)) {
} else { } else {
// all tables in db // all tables in db
// - get the total number of tables // - get the total number of tables
// (needed for proper working of the MaxTableList feature)
$tables = PMA_DBI_get_tables($db);
$total_num_tables = count($tables);
if (isset($sub_part) && $sub_part == '_export') { if (isset($sub_part) && $sub_part == '_export') {
// (don't fetch only a subset if we are coming from db_export.php, // (don't fetch only a subset if we are coming from db_export.php,
// because I think it's too risky to display only a subset of the // because I think it's too risky to display only a subset of the
@@ -228,7 +231,10 @@ if (! isset($sot_ready)) {
* @global int count of tables in db * @global int count of tables in db
*/ */
$num_tables = count($tables); $num_tables = count($tables);
// (needed for proper working of the MaxTableList feature)
if (! isset($total_num_tables)) {
$total_num_tables = $num_tables; $total_num_tables = $num_tables;
}
/** /**
* cleanup * cleanup