diff options
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Pagination.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index 538c42723..76968197d 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -124,6 +124,13 @@ class CI_Pagination { // Prep the current page - no funny business!
$this->cur_page = (int) $this->cur_page;
}
+
+ $this->num_links = (int)$this->num_links;
+
+ if ($this->num_links < 1)
+ {
+ show_error('Your number of links must be a positive number.');
+ }
if ( ! is_numeric($this->cur_page))
{
|