Merge branch 'MDL-45650_master' of https://github.com/markn86/moodle
authorSam Hemelryk <sam@moodle.com>
Mon, 26 May 2014 01:59:08 +0000 (13:59 +1200)
committerSam Hemelryk <sam@moodle.com>
Mon, 26 May 2014 01:59:08 +0000 (13:59 +1200)
user/view.php

index 900f1fa..7bad594 100644 (file)
@@ -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,
     'courseid' => $course->id,
     'context' => $coursecontext,