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