wrong count limit for paged views

This commit is contained in:
real_nowhereman 2009-02-28 16:06:15 +00:00
parent 3eda7bfd6c
commit 7fa207b8f8

View File

@ -278,7 +278,7 @@
} elseif (($qp->start + $qp->count) > $index_count) { } elseif (($qp->start + $qp->count) > $index_count) {
if ($index_count > 0) if ($index_count >= $qp->start)
$qp->count = $index_count - $qp->start; $qp->count = $index_count - $qp->start;
else else
$index_count = $qp->start = $qp->count = 0; $index_count = $qp->start = $qp->count = 0;