From d85d7f82ef2f322853933c6a64ae66db23f845d0 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 29 May 2008 16:41:20 +0000 Subject: [PATCH] bug #1977046, no table pagination; revert of revision 11247 --- libraries/db_info.inc.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/db_info.inc.php b/libraries/db_info.inc.php index 00615c93f..f4a63f3fb 100644 --- a/libraries/db_info.inc.php +++ b/libraries/db_info.inc.php @@ -202,6 +202,9 @@ if (! isset($sot_ready)) { } else { // all tables in db // - 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') { // (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 @@ -228,7 +231,10 @@ if (! isset($sot_ready)) { * @global int count of tables in db */ $num_tables = count($tables); -$total_num_tables = $num_tables; +// (needed for proper working of the MaxTableList feature) +if (! isset($total_num_tables)) { + $total_num_tables = $num_tables; +} /** * cleanup