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";