Fixed a notice on PHP 5

This commit is contained in:
moodler 2004-08-07 13:40:48 +00:00
parent 6527c077b6
commit 5132e606f1

View File

@ -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.'&amp;course='.$this->course->id.'">'.get_string('editmyprofile').'</a>';
if ($USER->description) {