mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Fixed a notice on PHP 5
This commit is contained in:
parent
6527c077b6
commit
5132e606f1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue