Subscription class listing retrieval fixed

The incorrect variable was tried to be 0 causing offset limits that
are more than 1 to be treated identically (like the raw $ids value).
This commit is contained in:
Mikael Nordfeldth 2014-05-30 23:33:38 +02:00
parent eb7f964598
commit 61116ea991
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ class Subscription extends Managed_DataObject
$ids = $sub->fetchAll($get_type);
// If we're simultaneously filling up cache, remember to slice
if ($offset === 0 && $querylimit === self::CACHE_WINDOW) {
if ($queryoffset === 0 && $querylimit === self::CACHE_WINDOW) {
self::cacheSet($cacheKey, $ids);
return array_slice($ids, $offset, $limit);
}