diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-09 11:01:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-09 11:01:33 +0000 |
commit | 094aa1f380e65926ad01d801abecaba1b92ed528 (patch) | |
tree | 3f03d42d3ea667e2562a8f75aa2b97c1cd72e37a | |
parent | 9808fa9f9d2924f7056f47fb627d58bd47e4f2cf (diff) | |
download | elgg-094aa1f380e65926ad01d801abecaba1b92ed528.tar.gz elgg-094aa1f380e65926ad01d801abecaba1b92ed528.tar.bz2 |
The relationship listing function wasn't taking offsets properly.
git-svn-id: https://code.elgg.org/elgg/trunk@1350 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/relationships.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php index 1e8e2fc9e..4d0db5d66 100644 --- a/engine/lib/relationships.php +++ b/engine/lib/relationships.php @@ -520,8 +520,8 @@ $limit = (int) $limit;
$offset = (int) get_input('offset');
- $count = get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship, $type, $subtype, $owner_guid, "", $limit, 0, true);
- $entities = get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship, $type, $subtype, $owner_guid, "", $limit, 0);
+ $count = get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship, $type, $subtype, $owner_guid, "", $limit, $offset, true);
+ $entities = get_entities_from_relationship($relationship, $relationship_guid, $inverse_relationship, $type, $subtype, $owner_guid, "", $limit, $offset);
return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview);
|