commit | f37fa6edd5f6e12de1ad93861fd640fa8e939f42 | [log] [tgz] |
---|---|---|
author | Derek Allard <derek.allard@ellislab.com> | Wed Jan 30 01:15:03 2008 +0000 |
committer | Derek Allard <derek.allard@ellislab.com> | Wed Jan 30 01:15:03 2008 +0000 |
tree | a1fa1a0ddff40ef746faa794bfbe34bc6c1fdf9a | |
parent | 240292e5a7b9ed9ead1b88bc169ad3aeb15900d6 [diff] |
Fixed a bug (#2679) where the "previous" pagination link would get drawn on the first page.
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index ba1572f..28b74f1 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php
@@ -165,7 +165,7 @@ } // 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 = '';