diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-19 12:49:29 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-19 12:49:29 +0000 |
commit | 9026d48d405ba43dc6218ecfe34f6dfeb7b16104 (patch) | |
tree | fa6c03fea00993fc4e9635b2a6acef3e27b8a665 /engine/lib/river.php | |
parent | 5893eaf6588ce7b6823fa78f54c0042983389162 (diff) | |
download | elgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.gz elgg-9026d48d405ba43dc6218ecfe34f6dfeb7b16104.tar.bz2 |
Fixed #50: River widgets
http://trac.elgg.org/elgg/ticket/50
git-svn-id: https://code.elgg.org/elgg/trunk@992 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/river.php')
-rw-r--r-- | engine/lib/river.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/river.php b/engine/lib/river.php index b9ab5c5e9..7461a4f60 100644 --- a/engine/lib/river.php +++ b/engine/lib/river.php @@ -29,7 +29,7 @@ * @param string $relationship Limit return results to only those users who $by_user has $relationship with. * @param int $limit Maximum number of events to show * @param int $offset An offset - * @return array + * @return array of river entities rendered with the appropriate view. */ function get_river_entries($by_user = "", $relationship = "", $limit = 10, $offset = 0) { @@ -44,16 +44,16 @@ // River objects $river = array(); - + do { $log_events = get_system_log($by_user, "","", $cnt, $off); - + if (!$log_events) $exit = true; else { - + foreach ($log_events as $log) { // See if we have access to the object we're talking about @@ -71,7 +71,7 @@ (!$relationship) || ( ($relationship) && - (check_entity_relationship($by_user, $relationship, $log->getObjectOwnerGUID())) + (check_entity_relationship($by_user, $relationship, $tmp->getObjectOwnerGUID())) ) ) { |