summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-20 13:47:00 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-20 13:47:00 -0400
commitd53a4123f369087afd901073a4c865e9703ff698 (patch)
tree13a5fc4673872eda26bd5af15b7d3a87d6687c81 /classes
parent1a81057985001fb1cb9a1ad996021f7c7f64c734 (diff)
can actually take all the data in the window
darcs-hash:20080920174700-84dde-a00751e0eafd9adc4580924bb41c11b0649b7fe5.gz
Diffstat (limited to 'classes')
-rw-r--r--classes/User.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php
index 65b2d663e..62f38ebff 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -145,7 +145,7 @@ class User extends DB_DataObject
# We clearly need a more elegant way to make this work.
if (common_config('memcached', 'enabled')) {
- if ($offset + $limit < WITHFRIENDS_CACHE_WINDOW) {
+ if ($offset + $limit <= WITHFRIENDS_CACHE_WINDOW) {
$cached = $this->noticesWithFriendsWindow();
$wrapper = new NoticeWrapper(array_slice($cached, $offset, $limit));
return $wrapper;