work around borkage in statuses/repeats -- tries to check an offset var that's not there. use the limit var which is there instead

This commit is contained in:
Brion Vibber 2010-12-17 15:04:10 -08:00
parent 66474586af
commit 04aa8bd70f
1 changed files with 2 additions and 2 deletions

View File

@ -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();