Index: branches/unlabeled/unlabeled-1.62.2/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r5883 -r5911 --- branches/unlabeled/unlabeled-1.62.2/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 5883) +++ branches/unlabeled/unlabeled-1.62.2/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 5911) @@ -416,8 +416,8 @@ function NotLastItem($params) { - $object =& $this->getObject($params); // maybe we should use $this->GetList($params) instead - return ($object->CurrentIndex < min($object->PerPage, $object->RecordsCount) - 1); + $object =& $this->getList($params); // maybe we should use $this->GetList($params) instead + return ($object->CurrentIndex < min($object->PerPage == -1 ? $object->RecordsCount : $object->PerPage, $object->RecordsCount) - 1); } function PageLink($params)