aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/river.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 16:53:43 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 16:53:43 +0000
commit3736bc66532e3f506c62bf6edf8d98c029cd0713 (patch)
tree895574b7e9f3372aeb69c0f0b72234ab8b12e11e /engine/lib/river.php
parent3050d4aba881ffb2d6904b2e8e7054c2566d2de2 (diff)
downloadelgg-3736bc66532e3f506c62bf6edf8d98c029cd0713.tar.gz
elgg-3736bc66532e3f506c62bf6edf8d98c029cd0713.tar.bz2
Fixes #121 and #143. Please confirm.
git-svn-id: https://code.elgg.org/elgg/trunk@1717 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/river.php')
-rw-r--r--engine/lib/river.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php
index 9fa93b172..3b69efd1c 100644
--- a/engine/lib/river.php
+++ b/engine/lib/river.php
@@ -410,13 +410,15 @@
* @param int $offset An offset
* @return array of river entities rendered with the appropriate view.
*/
- function get_river_entries_friends($by_user, $limit = 10, $offset = 0) {
+ function get_river_entries_friends($by_user, $limit = 10, $offset = 0) {
+ $friendsarray = "";
if ($friends = get_user_friends($by_user, "", 9999)) {
$friendsarray = array();
foreach($friends as $friend) {
$friendsarray[] = $friend->getGUID();
}
- }
+ }
+
return get_river_entries($friendsarray,"",$limit,$offset);
}