Skip to content

Commit

Permalink
Merge branch 'MDL-44454_old_code' of https://github.com/andyjdavis/mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Apr 7, 2014
2 parents 652f9a5 + abdfe18 commit c122965
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions user/index.php
Expand Up @@ -786,27 +786,6 @@
$data[] = $lastaccess;
}

if (isset($userlistextra) && isset($userlistextra[$user->id])) {
$ras = $userlistextra[$user->id]['ra'];
$rastring = '';
foreach ($ras as $key => $ra) {
$rolename = $allrolenames[$ra['roleid']];
if ($ra['ctxlevel'] == CONTEXT_COURSECAT) {
$rastring .= $rolename. ' @ ' . '<a href="'.$CFG->wwwroot.'/course/index.php?categoryid='.$ra['ctxinstanceid'].'">'.s($ra['ccname']).'</a>';
} else if ($ra['ctxlevel'] == CONTEXT_SYSTEM) {
$rastring .= $rolename. ' - ' . get_string('globalrole', 'role');
} else {
$rastring .= $rolename;
}
}
$data[] = $rastring;
if ($groupmode != 0) {
// Use htmlescape with s() and implode the array.
$data[] = implode(', ', array_map('s', $userlistextra[$user->id]['group']));
$data[] = implode(', ', array_map('s', $userlistextra[$user->id]['gping']));
}
}

$table->add_data($data);
}
}
Expand Down

0 comments on commit c122965

Please sign in to comment.