From: Brion Vibber Date: Fri, 17 Dec 2010 23:04:10 +0000 (-0800) Subject: work around borkage in statuses/repeats -- tries to check an offset var that's not... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04aa8bd70f0c3f84af349b8a801ea73753077760;p=quix0rs-gnu-social.git work around borkage in statuses/repeats -- tries to check an offset var that's not there. use the limit var which is there instead --- diff --git a/classes/Notice.php b/classes/Notice.php index ef5fba0631..c58705c4b8 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();