]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
work around borkage in statuses/repeats -- tries to check an offset var that's not...
authorBrion Vibber <brion@pobox.com>
Fri, 17 Dec 2010 23:04:10 +0000 (15:04 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 17 Dec 2010 23:05:45 +0000 (15:05 -0800)
classes/Notice.php

index ef5fba063164f6f3f68bec9fc1268513b3855417..c58705c4b887dfc625bd6242bbde151488f1e52c 100644 (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();