bug #1392924 undefined index: tab_count

This commit is contained in:
Sebastian Mendel
2006-01-14 19:19:41 +00:00
parent 974bfdc4b6
commit d1301521b4
3 changed files with 5 additions and 3 deletions

View File

@@ -16,6 +16,8 @@ $Source$
* libraries/common.lib.php:
removed aditional check for table row count for left frame tree
(bug #1397061 Left frame not loaded correct on MySQL error)
* libraries/common.lib.php, left.php:
bug #1392924 undefined index: tab_count
2006-01-12 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: typo, thanks to Cédric Corazza

View File

@@ -463,11 +463,11 @@ function PMA_displayTableList($tables, $visible = false,
return false;">
<?php
if ( $GLOBALS['text_dir'] === 'rtl' ) {
echo ' <bdo dir="ltr">(' . $table['tab_count'] . ')</bdo> ';
echo ' <bdo dir="ltr">(' . $table['tab' . $sep . 'count'] . ')</bdo> ';
}
echo htmlspecialchars( substr( $group, 0, strlen( $group ) - strlen( $sep ) ) );
if ( $GLOBALS['text_dir'] === 'ltr' ) {
echo ' <bdo dir="ltr">(' . $table['tab_count'] . ')</bdo> ';
echo ' <bdo dir="ltr">(' . $table['tab' . $sep . 'count'] . ')</bdo> ';
}
?>
</a>

View File

@@ -1100,7 +1100,7 @@ if (!defined('PMA_MINIMUM_COMMON')) {
$group[$group_name]['tab' . $sep . 'count'] = 1;
$group[$group_name]['tab' . $sep . 'group'] = $group_name_full;
} else {
$group[$group_name]['tab_count']++;
$group[$group_name]['tab' . $sep . 'count']++;
}
$group =& $group[$group_name];
$i++;