]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Notice.php
work around borkage in statuses/repeats -- tries to check an offset var that's not...
[quix0rs-gnu-social.git] / 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();