Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak to display on "unenrol"

  • Loading branch information...
commit 726020a2ef3af5452daef32e65095483d36d7a3f 1 parent 7482d8b
martin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  user/lib.php
View
2  user/lib.php
@@ -68,8 +68,8 @@ function print_user($user, $course, $string) {
if (isteacher($course->id)) {
$timemidnight = usergetmidnight(time());
echo "<A HREF=\"../course/user.php?id=$course->id&user=$user->id\">$string->activity</A><BR>";
- echo "<A HREF=\"../course/unenrol.php?id=$course->id&user=$user->id\">$string->unenrol</A><BR>";
if (isstudent($course->id, $user->id)) {
+ echo "<A HREF=\"../course/unenrol.php?id=$course->id&user=$user->id\">$string->unenrol</A><BR>";
echo "<A HREF=\"../course/loginas.php?id=$course->id&user=$user->id\">$string->loginas</A><BR>";
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.