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;