From 54be24ececadb89f714a69cfdd9249a3ac302e5b Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 14 Mar 2004 02:17:26 +0000 Subject: [PATCH] Avoid login as himself to teachers. One missing USER variable was the cause ;-) --- lib/weblib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index 9b013a7895c..f404a9ae2d2 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1180,7 +1180,7 @@ function print_user_picture($userid, $courseid, $picture, $large=false, $returns function print_user($user, $course) { /// Prints a summary of a user in a nice little box - global $CFG; + global $CFG,$USER; static $string; static $datestring;