From 5132e606f1729c9829544abd22ff563ce026cbf5 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 7 Aug 2004 13:40:48 +0000 Subject: [PATCH] Fixed a notice on PHP 5 --- 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 6970b186fa..31170e9f80 100644 --- a/blocks/participants/block_participants.php +++ b/blocks/participants/block_participants.php @@ -38,7 +38,7 @@ class CourseBlock_participants extends MoodleBlock { } } - if(!empty($USER)) { + if (!empty($USER->id)) { $fullname = fullname($USER, true); $editmyprofile = ''.get_string('editmyprofile').''; if ($USER->description) { -- 2.39.5