Skip to content

Commit

Permalink
Merge branch 'MDL-64426' of git://github.com/stronk7/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jan 8, 2019
2 parents 6360f87 + c7f9834 commit a1b1892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message/classes/api.php
Expand Up @@ -776,7 +776,7 @@ public static function get_conversations($userid, $limitfrom = 0, $limitnum = 20
// Name should be formatted and depends on the context the conversation resides in.
// If not set, the context is always context_user.
if (is_null($conversation->contextid)) {
$convcontext = \context_user::instance_by_id($userid);
$convcontext = \context_user::instance($userid);
} else {
$convcontext = \context::instance_by_id($conversation->contextid);
}
Expand Down

0 comments on commit a1b1892

Please sign in to comment.