ceil returned float (line 131), so if statement in line 134 was bound to return false (===, float vs integer)
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index d10bef3..63b750b 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -128,10 +128,10 @@
}
// 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 '';
}