mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed a notice on PHP 5
This commit is contained in:
parent
6527c077b6
commit
5132e606f1
@ -38,7 +38,7 @@ class CourseBlock_participants extends MoodleBlock {
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($USER)) {
|
||||
if (!empty($USER->id)) {
|
||||
$fullname = fullname($USER, true);
|
||||
$editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&course='.$this->course->id.'">'.get_string('editmyprofile').'</a>';
|
||||
if ($USER->description) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user