diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-01-12 18:04:10 +0100 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-01-12 18:04:10 +0100 |
commit | fc514ca3578c59753e059fd6b8a2415424850535 (patch) | |
tree | ca77060473bd78616ca157b8a674a1f420c8e015 /system/libraries/Pagination.php | |
parent | 1e42cdc1d3b4c919e0e4dec6a2ce81c360e946af (diff) | |
parent | 8f80bc4f855f78efbcb6344ea29cf67647b6772b (diff) |
Merge pull request #846 from aquariuz/develop
fixed 2 bugs
Diffstat (limited to 'system/libraries/Pagination.php')
-rw-r--r-- | system/libraries/Pagination.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php index c59151bad..35ac541e8 100644 --- a/system/libraries/Pagination.php +++ b/system/libraries/Pagination.php @@ -128,7 +128,7 @@ class CI_Pagination { } // Calculate the total number of pages - $num_pages = ceil($this->total_rows / $this->per_page); + $num_pages = (int) ceil($this->total_rows / $this->per_page); // Is there only one page? Hm... nothing more to do here then. if ($num_pages === 1) |