From 2600d3c29b0e2dc768fd81b29571f255f8ab9564 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 12 Oct 2005 12:02:00 +0000 Subject: [PATCH] fixed rowcount in left frame for tables in information_schema --- ChangeLog | 2 ++ libraries/common.lib.php | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ccf4aeeb6..0a8a96dc0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -17,6 +17,8 @@ $Source$ dont use 6-bit chars on windows * css/phpmyadmin.css.php: display bug in FF with tabs in querywindow + * libraries/common.lib.php: + fixed rowcount in left frame for tables in information_schema 2005-10-12 Michal Čihař * libraries/get_foreign.lib.php: Fix paging. diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 413c431d8..49ad5bcf8 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -1621,6 +1621,13 @@ if ($is_minimum_common == FALSE) { $table_groups = array(); foreach ( $tables as $table_name => $table ) { + + // check for correct row count + if ( NULL === $table['Rows'] ) { + $table['Rows'] = PMA_countRecords( $db, $table['Name'], + $return = true, $force_exact = true ); + } + // in $group we save the reference to the place in $table_groups // where to store the table info if ( $GLOBALS['cfg']['LeftFrameDBTree'] @@ -2440,7 +2447,8 @@ if (typeof(document.getElementById) != 'undefined' $tab_navigation .= '' . "\n" - .'
' . "\n"; + .'
' + .'' . "\n"; return $tab_navigation; }