fixed a bug if num_link wasn't postive
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 538c427..7696819 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -124,6 +124,13 @@
// 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))
{