Correctly match with separator
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
parent
2d8fa546e1
commit
19e146ee4b
@ -443,7 +443,11 @@ class Node
|
||||
if ($handle !== false) {
|
||||
while ($arr = $GLOBALS['dbi']->fetchArray($handle)) {
|
||||
foreach ($prefixes as $prefix) {
|
||||
if (strpos($arr[0], $prefix) === 0) {
|
||||
$starts_with = strpos(
|
||||
$arr[0] . $dbSeparator,
|
||||
$prefix . $dbSeparator
|
||||
) === 0;
|
||||
if ($starts_with) {
|
||||
$retval[] = $arr[0];
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user