diff --git a/system/paginator.php b/system/paginator.php index e91ff63d..60b7f4cb 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -59,6 +59,8 @@ class Paginator { $this->per_page = $per_page; $this->results = $results; $this->total = $total; + + $this->last_page = ceil($total / $per_page); } /** @@ -88,7 +90,7 @@ class Paginator { */ public function links($adjacent = 3) { - return ($this->last_page() > 1) ? '