fixed typo in bplustree and workaround for notice in return value (reference)
This commit is contained in:
parent
25b711d9be
commit
522d3616b8
@ -1025,13 +1025,14 @@ class BPlusTree_Node {
|
||||
$size = $this->size;
|
||||
$position = $this->indices[$size];
|
||||
if ($position == BPT_NULLSEEK) {
|
||||
return null;
|
||||
$neighbour = null;
|
||||
} else {
|
||||
$neighbour = $this->getclone($position);
|
||||
$neighbour = $neighbour->materialize();
|
||||
return $neighbour;
|
||||
}
|
||||
|
||||
return $neighbour;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2387,7 +2388,7 @@ class BPlusWalker {
|
||||
} elseif (in_array($keylower, $keys) && $this->includelower) {
|
||||
$this->node_index = array_search($keylower, $keys);
|
||||
$index = $this->node_index;
|
||||
if ($Index<$validkeys) {
|
||||
if ($index<$validkeys) {
|
||||
$this->valid = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user