aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/riverdashboard/views/default/riverdashboard/ecml/activity.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php b/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
index 87c048ea5..93b7e168f 100644
--- a/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
+++ b/mod/riverdashboard/views/default/riverdashboard/ecml/activity.php
@@ -9,19 +9,20 @@
* @link http://elgg.org/
*/
-$user = (isset($vars['user'])) ? $vars['user'] : NULL;
+// $vars['user'] is apparently the loggedin user.
+$owner = (isset($vars['owner'])) ? $vars['owner'] : NULL;
$type = (isset($vars['type'])) ? $vars['type'] : NULL;
$subtype = (isset($vars['subtype'])) ? $vars['subtype'] : NULL;
$limit = (isset($vars['limit'])) ? $vars['limit'] : 10;
// resolve usernames to guids
-if (!is_numeric($user)) {
- if ($user_obj = get_user_by_username($user)) {
- $user = $user_obj->getGUID();
+if ($owner && !is_numeric($owner)) {
+ if ($user_obj = get_user_by_username($owner)) {
+ $owner = $user_obj->getGUID();
}
}
-$river = elgg_view_river_items($user, NULL, NULL, $type, $subtype, '', $limit, 0, 0, true, false) . "</div>";
+$river = elgg_view_river_items($owner, NULL, NULL, $type, $subtype, '', $limit, 0, 0, true, false) . "</div>";
// Replacing callback calls in the nav with something meaningless
$river = str_replace('callback=true','replaced=88,334',$river);