From 522d3616b8986b32b9943411ea7e5743b2c9fb9a Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Mon, 8 Sep 2008 08:21:00 +0000 Subject: [PATCH] fixed typo in bplustree and workaround for notice in return value (reference) --- fp-includes/core/core.bplustree.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fp-includes/core/core.bplustree.class.php b/fp-includes/core/core.bplustree.class.php index a11f16c..59f5b30 100755 --- a/fp-includes/core/core.bplustree.class.php +++ b/fp-includes/core/core.bplustree.class.php @@ -1025,12 +1025,13 @@ 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; } }