]> git.mjollnir.org Git - moodle.git/commitdiff
No need to show profile editing link to guests
authormoodler <moodler>
Tue, 28 Dec 2004 17:52:05 +0000 (17:52 +0000)
committermoodler <moodler>
Tue, 28 Dec 2004 17:52:05 +0000 (17:52 +0000)
blocks/participants/block_participants.php

index f709e224a616add42ac92278e4613d4803844461..bc2e4aaa5ac92580edff72d15fb7a703744a2f8b 100644 (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) {