From 82d0e3749d532c5bd3bf610ea198b64953117c60 Mon Sep 17 00:00:00 2001 From: Mark Nelson Date: Wed, 21 May 2014 00:25:17 -0700 Subject: [PATCH] MDL-45650 events: ensure correct objectid passed when triggering user_profile_viewed event --- user/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/view.php b/user/view.php index 2e008750b26..39c4919c3ac 100644 --- a/user/view.php +++ b/user/view.php @@ -190,7 +190,7 @@ if ($user->deleted) { // OK, security out the way, now we are showing the user. // Trigger a user profile viewed event. $event = \core\event\user_profile_viewed::create(array( - 'objectid' => $USER->id, + 'objectid' => $user->id, 'relateduserid' => $user->id, 'context' => $usercontext, 'other' => array(