summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-01-30 02:15:03 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-01-30 02:15:03 +0100
commitf37fa6edd5f6e12de1ad93861fd640fa8e939f42 (patch)
treea1fa1a0ddff40ef746faa794bfbe34bc6c1fdf9a /system
parent240292e5a7b9ed9ead1b88bc169ad3aeb15900d6 (diff)
Fixed a bug (#2679) where the "previous" pagination link would get drawn on the first page.
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Pagination.php2
1 files changed, 1 insertions, 1 deletions
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 = '';