aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 9587bf1e4..8f383904d 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -743,8 +743,12 @@ function elgg_view_annotation(ElggAnnotation $annotation, $bypass = true, $debug
*/
function elgg_view_entity_list($entities, $count, $offset, $limit, $fullview = true, $viewtypetoggle = true, $pagination = true) {
$count = (int) $count;
- $offset = (int) $offset;
$limit = (int) $limit;
+
+ // do not require views to explicitly pass in the offset
+ if (!$offset = (int) $offset) {
+ $offset = get_input('offset', 0);
+ }
$context = get_context();