diff options
author | Andrey Andreev <narf@devilix.net> | 2013-10-14 11:27:00 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2013-10-14 11:27:00 +0200 |
commit | b367f7ba9302f00926f6b923ca1ca741b351ae96 (patch) | |
tree | cc09bc2ec9ac26c19924ee4d40947cee4fea48a2 /system | |
parent | 9f417d070916e82309a762639cc344445601156b (diff) |
Fix #2674
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Pagination.php | 3 |
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 ''; } |