]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Subscription class listing retrieval fixed
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 30 May 2014 21:33:38 +0000 (23:33 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 30 May 2014 21:37:00 +0000 (23:37 +0200)
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

index 56df0b88be54e55d99e01afa8eeec33d83701e86..edee9950d81835ed5a45881c3f5909a7fd0bb07b 100644 (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);
         }