From 02b0c399244435f0aeaa710b1992c75964fac88b Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Thu, 2 Oct 2008 21:54:24 +0000 Subject: changed if ($this->cur_page > $this->num_links) to if ($this->cur_page > ($this-> num_links + 1)) so the "First" link only renders when the link for page 1 is now shown --- system/libraries/Pagination.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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.''.$this->first_link.''.$this->first_tag_close; } -- cgit v1.2.3-24-g4f1b