summaryrefslogtreecommitdiffstats
path: root/system/libraries/Pagination.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-10-14 11:27:00 +0200
committerAndrey Andreev <narf@devilix.net>2013-10-14 11:27:00 +0200
commitb367f7ba9302f00926f6b923ca1ca741b351ae96 (patch)
treecc09bc2ec9ac26c19924ee4d40947cee4fea48a2 /system/libraries/Pagination.php
parent9f417d070916e82309a762639cc344445601156b (diff)
Fix #2674
Diffstat (limited to 'system/libraries/Pagination.php')
-rw-r--r--system/libraries/Pagination.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index 10fb29dbd..c6ffd03d4 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -354,7 +354,8 @@ class CI_Pagination {
public function create_links()
{
// If our item count or per-page total is zero there is no need to continue.
- if ($this->total_rows === 0 OR $this->per_page === 0)
+ // Note: DO NOT change the operator to === here!
+ if ($this->total_rows == 0 OR $this->per_page == 0)
{
return '';
}