From 340584e504bba36e723134665d9980caecdc9f3c Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Tue, 29 Jan 2008 14:12:05 +0000 Subject: [PATCH] [config] new parameter $cfg['Servers'][$i]['CountTables'] = true; set to false for speed improvements with many databases --- libraries/List_Database.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/List_Database.class.php b/libraries/List_Database.class.php index ab3e9fa32..2b9059c2c 100644 --- a/libraries/List_Database.class.php +++ b/libraries/List_Database.class.php @@ -432,8 +432,11 @@ require_once './libraries/List.class.php'; if ($db['name'] == $selected) { $return .= ' selected="selected"'; } - $return .= '>' . htmlspecialchars($cut ? $db['disp_name_cut'] : $db['disp_name']) - .' (' . $db['num_tables'] . ')' . "\n"; + $return .= '>' . htmlspecialchars($cut ? $db['disp_name_cut'] : $db['disp_name']); + if (! empty($db['num_tables'])) { + $return .= ' (' . $db['num_tables'] . ')'; + } + $return .= '' . "\n"; } if (count($dbs) > 1) { $return .= '' . "\n";