summaryrefslogtreecommitdiffstats
path: root/system/libraries/Pagination.php
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2012-07-13 18:03:56 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2012-07-13 18:03:56 +0200
commit5d50453b501d093419c23b128742a68e830fbe14 (patch)
tree7e58bb8d4db9cd20a6df18f6ced5e27a7638acf6 /system/libraries/Pagination.php
parent9859cb032ab5b702bd91d4aafbf5119c0f7d200a (diff)
fix issue #1605 covert page number type from float to int
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'system/libraries/Pagination.php')
-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 */