From f37fa6edd5f6e12de1ad93861fd640fa8e939f42 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Wed, 30 Jan 2008 01:15:03 +0000 Subject: Fixed a bug (#2679) where the "previous" pagination link would get drawn on the first page. --- system/libraries/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Pagination.php') diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index ba1572f66..28b74f1f0 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -165,7 +165,7 @@ class CI_Pagination { } // Render the "previous" link - if (($this->cur_page - $this->num_links) >= 0) + if ($this->cur_page != 1) { $i = $uri_page_number - $this->per_page; if ($i == 0) $i = ''; -- cgit v1.2.3-24-g4f1b