From 04aa8bd70f0c3f84af349b8a801ea73753077760 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 17 Dec 2010 15:04:10 -0800 Subject: work around borkage in statuses/repeats -- tries to check an offset var that's not there. use the limit var which is there instead --- classes/Notice.php | 4 ++-- 1 file 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(); -- cgit v1.2.3