MDL-42279 user: fixed typo in user_get_user_details_courses

This commit is contained in:
Sam Hemelryk 2014-02-20 09:43:22 +13:00
parent 1d2fa3af5a
commit 854859e1b0

View File

@ -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);
}
}