From caa0f2ffa2785284b8401a9c32b61757430a44d9 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 28 Dec 2004 17:52:05 +0000 Subject: [PATCH] No need to show profile editing link to guests --- blocks/participants/block_participants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5