From d1301521b486ecdb1a11fd09439bab5fefa35dbd Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Sat, 14 Jan 2006 19:19:41 +0000 Subject: [PATCH] bug #1392924 undefined index: tab_count --- ChangeLog | 2 ++ left.php | 4 ++-- libraries/common.lib.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 58c7e8b07..145a9a4c3 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 * Documentation.html: typo, thanks to Cédric Corazza diff --git a/left.php b/left.php index 71a5cf0ab..605cf3412 100644 --- a/left.php +++ b/left.php @@ -463,11 +463,11 @@ function PMA_displayTableList($tables, $visible = false, return false;"> (' . $table['tab_count'] . ') '; + echo ' (' . $table['tab' . $sep . 'count'] . ') '; } echo htmlspecialchars( substr( $group, 0, strlen( $group ) - strlen( $sep ) ) ); if ( $GLOBALS['text_dir'] === 'ltr' ) { - echo ' (' . $table['tab_count'] . ') '; + echo ' (' . $table['tab' . $sep . 'count'] . ') '; } ?> diff --git a/libraries/common.lib.php b/libraries/common.lib.php index e5ea97010..b3a2e4d11 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -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++;