diff --git a/libraries/List_Database.class.php b/libraries/List_Database.class.php
index 13274453b..6c578811b 100644
--- a/libraries/List_Database.class.php
+++ b/libraries/List_Database.class.php
@@ -345,10 +345,10 @@ require_once './libraries/List.class.php';
if (count($dbs) > 1) {
$return .= '
' . htmlspecialchars($group) . '' . "\n";
// wether display db_name cuted by the group part
- $cut = htmlspecialchars($db['disp_name_cut']);
+ $cut = true;
} else {
// .. or full
- $cut = htmlspecialchars($db['disp_name']);
+ $cut = false;
}
foreach ($dbs as $db) {
$return .= '- ';
- $return .= $cut .' (' . $db['num_tables'] . ')';
+ if ($cut) {
+ $return .= htmlspecialchars($db['disp_name_cut']);
+ } else {
+ $return .= htmlspecialchars($db['disp_name']);
+ }
+ $return .= ' (' . $db['num_tables'] . ')';
$return .= '
' . "\n";
}
if (count($dbs) > 1) {