Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
[zendframework/zendframework#1200] Fix paginator cache usage
Browse files Browse the repository at this point in the history
- Due to zendframework/zendframework#1200, had to change how Paginator tests for a cache hit
  • Loading branch information
weierophinney committed May 11, 2012
1 parent e29d393 commit 0fc5669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ public function getItemsByPage($pageNumber)

if ($this->_cacheEnabled()) {
$data = self::$_cache->getItem($this->_getCacheId($pageNumber));
if ($data !== false) {
if ($data) {
return $data;
}
}
Expand Down

0 comments on commit 0fc5669

Please sign in to comment.