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:
parent
0c94149533
commit
cd3ad518a7
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user