summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Notice.php4
1 files 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();