summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorRonald Beilsma <beilsma@gmail.com>2011-12-29 09:57:49 +0100
committerRonald Beilsma <beilsma@gmail.com>2011-12-29 09:57:49 +0100
commitcfb7021e9f53fa089bfd676978b448b27e4bd996 (patch)
tree9ec4fedf18beefee9bb01eff60c165605782beb8 /system
parent64b013611f65006197fdf465186ca36adf12847d (diff)
ceil returned float (line 131), so if statement in line 134 was bound to return false (===, float vs integer)
Diffstat (limited to 'system')
-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 d10bef3e5..63b750bdb 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -128,10 +128,10 @@ 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)
+ if ($num_pages === 1)
{
return '';
}