diff --git a/user/index.php b/user/index.php index 0a231c13040..85d5f084302 100644 --- a/user/index.php +++ b/user/index.php @@ -20,6 +20,8 @@ require_login($course->id); + $isteacher = isteacher($course->id); + add_to_log($course->id, "user", "view all", "index.php?id=$course->id", ""); $string->email = get_string("email"); @@ -216,8 +218,10 @@ $picture = print_user_picture($student->id, $course->id, $student->picture, false, true); } + $fullname = fullname($student, $isteacher); + $table->data[] = array ($picture, - "wwwroot/user/view.php?id=$student->id&course=$course->id\">$student->firstname $student->lastname", + "wwwroot/user/view.php?id=$student->id&course=$course->id\">$fullname", "$student->city", "$student->country", "$lastaccess");