aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/river2.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-06 11:52:38 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-06 11:52:38 +0000
commit1ea58ff10869d00afc464e4fd32d736a01968ad3 (patch)
treeccc481cb66608c7cb1c93d67b27bae84f9f17ddd /engine/lib/river2.php
parent41da59edbdd498570e701d913720bbdee852839e (diff)
downloadelgg-1ea58ff10869d00afc464e4fd32d736a01968ad3.tar.gz
elgg-1ea58ff10869d00afc464e4fd32d736a01968ad3.tar.bz2
If you don't have any friends, the river no longer returns all on the 'friends' view. Fixes #839
git-svn-id: https://code.elgg.org/elgg/trunk@3113 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/river2.php')
-rw-r--r--engine/lib/river2.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/river2.php b/engine/lib/river2.php
index df985b45e..ecf0cbcb8 100644
--- a/engine/lib/river2.php
+++ b/engine/lib/river2.php
@@ -198,6 +198,8 @@
foreach($entities as $entity) $guids[] = (int) $entity->guid;
// $guids[] = $subject_guid;
$where[] = " subject_guid in (" . implode(',',$guids) . ") ";
+ } else {
+ return array();
}
}
if (!empty($object_guid))