aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/river.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 1bc04f36a..74e7322e8 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -336,7 +336,12 @@ function elgg_get_river_items($subject_guid = 0, $object_guid = 0, $subject_rela
}
} else {
if (!is_array($subject_guid)) {
- if ($entities = get_entities_from_relationship($subject_relationship,$subject_guid,false,'','',0,'',9999)) {
+ $entities = elgg_get_entities_from_relationship(array(
+ 'relationship' => $subject_relationship,
+ 'relationship_guid' => $subject_guid,
+ 'limit' => 9999,
+ ));
+ if (is_array($entities) && !empty($entities)) {
$guids = array();
foreach($entities as $entity) {
$guids[] = (int) $entity->guid;