Group two databases, when one's name is the prefix of the second one.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
Hugues Peccatte 2014-04-20 16:30:30 +02:00
parent 0c94149533
commit cd3ad518a7

View File

@ -572,6 +572,12 @@ class PMA_NavigationTree
}
}
}
//Check if prefix is the name of a DB, to create a group.
foreach ($node->children as $child) {
if (array_key_exists($child->name, $prefixes)) {
$prefixes[$child->name]++;
}
}
}
foreach ($prefixes as $key => $value) {
if ($value == 1) {