From 094aa1f380e65926ad01d801abecaba1b92ed528 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 9 Jul 2008 11:01:33 +0000 Subject: The relationship listing function wasn't taking offsets properly. git-svn-id: https://code.elgg.org/elgg/trunk@1350 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/relationships.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib/relationships.php') 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); -- cgit v1.2.3