No need to show profile editing link to guests

This commit is contained in:
moodler 2004-12-28 17:52:05 +00:00
parent b603ccb72c
commit caa0f2ffa2

View File

@ -45,7 +45,7 @@ class block_participants extends block_base {
}
}
if (!empty($USER->id)) {
if (!empty($USER->id) and !isguest()) {
$fullname = fullname($USER, true);
$editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&amp;course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
if ($USER->description) {