aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-13 16:15:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-13 16:15:42 +0000
commitd24169856137d5327f657cd18ff50ea4190ab0a2 (patch)
treef42830d5e8789a5a9492b48db52feb8502b2f07b /engine/lib
parent2e41019e9e9942ab2aa580ef661864452e04ca6f (diff)
downloadelgg-d24169856137d5327f657cd18ff50ea4190ab0a2.tar.gz
elgg-d24169856137d5327f657cd18ff50ea4190ab0a2.tar.bz2
Simple river pagination.
git-svn-id: https://code.elgg.org/elgg/trunk@2748 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/river2.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php
index d70f1e73b..d3d285aac 100644
--- a/engine/lib/river2.php
+++ b/engine/lib/river2.php
@@ -238,7 +238,7 @@
$offset = (int) get_input('offset',0);
// Get river items, if they exist
- if ($riveritems = get_river_items($subject_guid,$object_guid,$subject_relationship,$type,$subtype,$action_type,$limit,$offset,$posted_min,$posted_max)) {
+ if ($riveritems = get_river_items($subject_guid,$object_guid,$subject_relationship,$type,$subtype,$action_type,($limit + 1),$offset,$posted_min,$posted_max)) {
return elgg_view('river/item/list',array(
'limit' => $limit,