修正分页类

This commit is contained in:
yunwuxin
2016-05-09 17:32:03 +08:00
parent 67fd89cace
commit efcda39795

View File

@@ -60,6 +60,7 @@ abstract class Paginator
$this->hasMore = count($this->items) > ($this->listRows);
$this->items = $this->items->slice(0, $this->listRows);
} else {
$this->total = $total;
$this->lastPage = (int)ceil($total / $listRows);
$this->currentPage = $this->setCurrentPage($currentPage);
$this->hasMore = $this->currentPage < $this->lastPage;