fixed typo in bplustree and workaround for notice in return value (reference)

This commit is contained in:
real_nowhereman 2008-09-08 08:21:00 +00:00
parent 25b711d9be
commit 522d3616b8

View File

@ -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;
}
}