From: moodler Date: Tue, 28 Dec 2004 17:52:05 +0000 (+0000) Subject: No need to show profile editing link to guests X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=caa0f2ffa2785284b8401a9c32b61757430a44d9;p=moodle.git No need to show profile editing link to guests --- diff --git a/blocks/participants/block_participants.php b/blocks/participants/block_participants.php index f709e224a6..bc2e4aaa5a 100644 --- a/blocks/participants/block_participants.php +++ b/blocks/participants/block_participants.php @@ -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 = ''.get_string('editmyprofile').''; if ($USER->description) {