mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-42279 user: fixed typo in user_get_user_details_courses
This commit is contained in:
parent
1d2fa3af5a
commit
854859e1b0
@ -540,7 +540,7 @@ function user_get_user_details_courses($user) {
|
||||
} else {
|
||||
// Try through course profile.
|
||||
foreach ($courses as $course) {
|
||||
if ($can_view_user_details_cap($user, $course) || ($user->id == $USER->id) || has_coursecontact_role($user->id)) {
|
||||
if (can_view_user_details_cap($user, $course) || ($user->id == $USER->id) || has_coursecontact_role($user->id)) {
|
||||
$userdetails = user_get_user_details($user, $course);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user