]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14293 Merged from 1.9, fix for undefined $status variable
authormoodler <moodler>
Thu, 10 Apr 2008 03:35:17 +0000 (03:35 +0000)
committermoodler <moodler>
Thu, 10 Apr 2008 03:35:17 +0000 (03:35 +0000)
course/lib.php

index 4f1404b02ed04fe98d00ea5b96d3dbc84e93ec91..28fc2587b5540e55500e967fd64946701711d0c2 100644 (file)
@@ -1878,8 +1878,10 @@ function print_course($course) {
                 foreach ($rusers as $ra) {
                     if ($ra->hidden == 0 || $canseehidden) {
                         $fullname = fullname($ra->user, $canviewfullnames); 
-                        if($ra->hidden == 1){
+                        if ($ra->hidden == 1) {
                             $status = " <img src=\"{$CFG->pixpath}/t/show.gif\" title=\"".get_string('userhashiddenassignments', 'role')."\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>";
+                        } else {
+                            $status = '';
                         }
 
                         if (isset($aliasnames[$ra->roleid])) {