From 7fa207b8f8e4124d2e52bccfcc4612f534d93f2b Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sat, 28 Feb 2009 16:06:15 +0000 Subject: [PATCH] wrong count limit for paged views --- 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 fd8c91c..b809b24 100644 --- a/fp-includes/core/core.fpdb.class.php +++ b/fp-includes/core/core.fpdb.class.php @@ -278,7 +278,7 @@ } elseif (($qp->start + $qp->count) > $index_count) { - if ($index_count > 0) + if ($index_count >= $qp->start) $qp->count = $index_count - $qp->start; else $index_count = $qp->start = $qp->count = 0;