fixed rowcount in left frame for tables in information_schema

This commit is contained in:
Sebastian Mendel
2005-10-12 12:02:00 +00:00
parent 0b808fb553
commit 2600d3c29b
2 changed files with 11 additions and 1 deletions

View File

@@ -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ř <michal@cihar.com>
* libraries/get_foreign.lib.php: Fix paging.

View File

@@ -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 .=
'</ul>' . "\n"
.'<div style="clear: both;" class="clearfloat"></div></div>' . "\n";
.'<div class="clearfloat"></div>'
.'</div>' . "\n";
return $tab_navigation;
}