Commit e6924a01 authored by moodler's avatar moodler
Browse files

MDL-14293 Merged from 1.9, fix for undefined $status variable

parent 4fd532ea
......@@ -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])) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment