MDL-42279 user: fixed typo in user_get_user_details_courses
authorSam Hemelryk <sam@moodle.com>
Wed, 19 Feb 2014 20:43:22 +0000 (09:43 +1300)
committerSam Hemelryk <sam@moodle.com>
Thu, 20 Feb 2014 19:34:49 +0000 (08:34 +1300)
user/lib.php

index 3e3b754..62d2145 100644 (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);
             }
         }