Skip to content
This repository has been archived by the owner on Apr 8, 2022. It is now read-only.

Commit

Permalink
MDL-42279 user: fixed typo in user_get_user_details_courses
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Feb 20, 2014
1 parent 1d2fa3a commit 854859e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 854859e

Please sign in to comment.