summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-13 19:06:30 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-13 19:06:30 +0200
commit44fb02f65dcc64bd1d6e317f147cc083ccda18d1 (patch)
tree7e58bb8d4db9cd20a6df18f6ced5e27a7638acf6 /system/libraries
parent9859cb032ab5b702bd91d4aafbf5119c0f7d200a (diff)
parent5d50453b501d093419c23b128742a68e830fbe14 (diff)
Merge pull request #1616 from appleboy/page
fix issue #1605 covert page number type from float to int
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Pagination.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index ed9964590..df9b0ddd9 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -203,7 +203,7 @@ class CI_Pagination {
if ( ! $this->use_page_numbers)
{
- $this->cur_page = floor(($this->cur_page/$this->per_page) + 1);
+ $this->cur_page = (int) floor(($this->cur_page/$this->per_page) + 1);
}
// Calculate the start and end numbers. These determine
@@ -392,4 +392,4 @@ class CI_Pagination {
}
/* End of file Pagination.php */
-/* Location: ./system/libraries/Pagination.php */ \ No newline at end of file
+/* Location: ./system/libraries/Pagination.php */