Skip to content

Commit

Permalink
Merge branch 'MDL-47162' of https://github.com/stronk7/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Nov 1, 2016
2 parents 9f02188 + f593e82 commit 57911c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/badgeslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ function badges_notify_badge_award(badge $badge, $userid, $issued, $filepathhash

// Notify recipient.
$eventdata = new \core\message\message();
$eventdata->courseid = $badge->courseid;
$eventdata->courseid = is_null($badge->courseid) ? SITEID : $badge->courseid; // Profile/site come with no courseid.
$eventdata->component = 'moodle';
$eventdata->name = 'badgerecipientnotice';
$eventdata->userfrom = $userfrom;
Expand Down

0 comments on commit 57911c1

Please sign in to comment.