mirror of
https://github.com/moodle/moodle.git
synced 2025-02-01 21:54:04 +01:00
Avoid login as himself to teachers. One missing USER
variable was the cause ;-)
This commit is contained in:
parent
e47543451e
commit
54be24ecec
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user