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:
parent
eb7f964598
commit
61116ea991
@ -375,7 +375,7 @@ class Subscription extends Managed_DataObject
|
|||||||
$ids = $sub->fetchAll($get_type);
|
$ids = $sub->fetchAll($get_type);
|
||||||
|
|
||||||
// If we're simultaneously filling up cache, remember to slice
|
// 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);
|
self::cacheSet($cacheKey, $ids);
|
||||||
return array_slice($ids, $offset, $limit);
|
return array_slice($ids, $offset, $limit);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user