From 61116ea9917682d9965ce587daa3262e85ea35fd Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 30 May 2014 23:33:38 +0200 Subject: [PATCH] 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). --- classes/Subscription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Subscription.php b/classes/Subscription.php index 56df0b88be..edee9950d8 100644 --- a/classes/Subscription.php +++ b/classes/Subscription.php @@ -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); }