From 24596571c72a4bf7d9dd40d149394c4ef5b270b0 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sun, 22 Aug 2010 16:42:47 +0000 Subject: [PATCH] Fix notice (walker/not a valid index(0)) when index is composed of one entry --- fp-includes/core/core.fpdb.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fp-includes/core/core.fpdb.class.php b/fp-includes/core/core.fpdb.class.php index 2a928ec..2d98230 100644 --- a/fp-includes/core/core.fpdb.class.php +++ b/fp-includes/core/core.fpdb.class.php @@ -254,7 +254,7 @@ $this->prevkey = null; if ($this->walker->valid) { $this->walker->next(); - $this->nextkey = $this->walker->current_key(); + $this->nextkey = $this->walker->valid? $this->walker->current_key() : null; } } else { $this->prevkey = $prevkey;