summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-12-17 15:04:10 -0800
committerBrion Vibber <brion@pobox.com>2010-12-17 15:05:45 -0800
commit04aa8bd70f0c3f84af349b8a801ea73753077760 (patch)
tree1a7de8716555a6ec1e681fc02875ad33752de5fd
parent66474586af58c4e505117f0fed7382831ec008b1 (diff)
work around borkage in statuses/repeats -- tries to check an offset var that's not there. use the limit var which is there instead
-rw-r--r--classes/Notice.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index ef5fba063..c58705c4b 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -1692,8 +1692,8 @@ class Notice extends Memcached_DataObject
$notice->orderBy('created'); // NB: asc!
- if (!is_null($offset)) {
- $notice->limit($offset, $limit);
+ if (!is_null($limit)) {
+ $notice->limit(0, $limit);
}
$ids = array();