]> git.mjollnir.org Git - moodle.git/commitdiff
Avoid login as himself to teachers. One missing USER
authorstronk7 <stronk7>
Sun, 14 Mar 2004 02:17:26 +0000 (02:17 +0000)
committerstronk7 <stronk7>
Sun, 14 Mar 2004 02:17:26 +0000 (02:17 +0000)
variable was the cause ;-)

lib/weblib.php

index 9b013a7895c3e3a56b4e0f0cbd816ddebe5c4947..f404a9ae2d2304273cbd4a6f075b43b590bbad85 100644 (file)
@@ -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;