From 60f85e193449f02cb81550be8dc3476d0b04e812 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Fri, 18 Feb 2011 12:55:51 -0500 Subject: [PATCH] Improve full mode navi display when CountTables is false --- navigation.php | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/navigation.php b/navigation.php index ef191fe21..381b561d1 100644 --- a/navigation.php +++ b/navigation.php @@ -423,18 +423,23 @@ function PMA_displayDbList($ext_dblist, $offset, $count) { . '?' . $common_url_query; ?>', 'main'); return false;"> (' . $db['num_tables'] . ') '; + // Might be unset if CountTables directive is false + if (isset($db['num_tables'])) { + if ($GLOBALS['text_dir'] === 'rtl') { + echo ' (' . $db['num_tables'] . ') '; + } } echo htmlspecialchars($db['disp_name']); - if ($GLOBALS['text_dir'] === 'ltr') { - echo ' (' . $db['num_tables'] . ') '; + if (isset($db['num_tables'])) { + if ($GLOBALS['text_dir'] === 'ltr') { + echo ' (' . $db['num_tables'] . ') '; + } } ?> " title=""> (' . $db['num_tables'] . ') '; + if (isset($db['num_tables'])) { + if ($GLOBALS['text_dir'] === 'rtl') { + echo ' (' . $db['num_tables'] . ') '; + } } echo htmlspecialchars($db['disp_name']); - if ($GLOBALS['text_dir'] === 'ltr') { - echo ' (' . $db['num_tables'] . ') '; + if (isset($db['num_tables'])) { + if ($GLOBALS['text_dir'] === 'ltr') { + echo ' (' . $db['num_tables'] . ') '; + } } ?>