Revert "Simplify code for generating separators array"
This reverts commit e3d93b7f8a.
The new code did not properly handle empty separator.
Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
6f9435b3ea
commit
07b090bcd2
@ -548,9 +548,11 @@ class PMA_NavigationTree
|
||||
return;
|
||||
}
|
||||
|
||||
$separators = $node->separator;
|
||||
if (! is_array($separators)) {
|
||||
$separators = array($separators);
|
||||
$separators = array();
|
||||
if (is_array($node->separator)) {
|
||||
$separators = $node->separator;
|
||||
} else if (strlen($node->separator)) {
|
||||
$separators[] = $node->separator;
|
||||
}
|
||||
$prefixes = array();
|
||||
if ($node->separator_depth > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user