From e6924a01bb8937d10a0edc84707796089c4d64f2 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 10 Apr 2008 03:35:17 +0000 Subject: [PATCH] MDL-14293 Merged from 1.9, fix for undefined $status variable --- course/lib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 4f1404b02e..28fc2587b5 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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 = " pixpath}/t/show.gif\" title=\"".get_string('userhashiddenassignments', 'role')."\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>"; + } else { + $status = ''; } if (isset($aliasnames[$ra->roleid])) { -- 2.39.5