]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a notice on PHP 5
authormoodler <moodler>
Sat, 7 Aug 2004 13:40:48 +0000 (13:40 +0000)
committermoodler <moodler>
Sat, 7 Aug 2004 13:40:48 +0000 (13:40 +0000)
blocks/participants/block_participants.php

index 6970b186fa28866819f7e1baa6cfd6e1166676e8..31170e9f805df9b8252dbac9f615da8ed788541c 100644 (file)
@@ -38,7 +38,7 @@ class CourseBlock_participants extends MoodleBlock {
             }
         }
 
-        if(!empty($USER)) {
+        if (!empty($USER->id)) {
             $fullname = fullname($USER, true);
             $editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&amp;course='.$this->course->id.'">'.get_string('editmyprofile').'</a>';
             if ($USER->description) {