From: moodler Date: Sat, 7 Aug 2004 13:40:48 +0000 (+0000) Subject: Fixed a notice on PHP 5 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5132e606f1729c9829544abd22ff563ce026cbf5;p=moodle.git Fixed a notice on PHP 5 --- 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) {