diff --git a/blocks/participants/block_participants.php b/blocks/participants/block_participants.php index f709e224a61..bc2e4aaa5ac 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) {