summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
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 957994485..4206f4e72 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -183,7 +183,7 @@ class CI_Pagination {
$output = '';
// Render the "First" link
- if ($this->cur_page > $this->num_links)
+ if ($this->cur_page > ($this->num_links + 1))
{
$output .= $this->first_tag_open.'<a href="'.$this->base_url.'">'.$this->first_link.'</a>'.$this->first_tag_close;
}