mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-12593 - hidden role assignment icon wasn't being shown. Also prevent warning
about unset $hidden merged from MOODLE_19_STABLE
This commit is contained in:
parent
e8276c1047
commit
13d1f5a6d2
@ -641,9 +641,9 @@
|
||||
|
||||
while ($user = rs_fetch_next_record($userlist)) {
|
||||
$user = make_context_subobj($user);
|
||||
if ($user->hidden) {
|
||||
if ( !empty($user->hidden) ) {
|
||||
// if the assignment is hidden, display icon
|
||||
$hidden = "<img src=\"{$CFG->pixpath}/t/hide.gif\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>";
|
||||
$hidden = " <img src=\"{$CFG->pixpath}/t/hide.gif\" alt=\"".get_string('hiddenassign')."\" class=\"hide-show-image\"/>";
|
||||
} else {
|
||||
$hidden = '';
|
||||
}
|
||||
@ -680,7 +680,7 @@
|
||||
|
||||
$data = array (
|
||||
print_user_picture($user, $course->id, $user->picture, false, true, $piclink),
|
||||
$profilelink);
|
||||
$profilelink . $hidden);
|
||||
|
||||
if ($mode === MODE_BRIEF && !isset($hiddenfields['city'])) {
|
||||
$data[] = $user->city;
|
||||
|
Loading…
x
Reference in New Issue
Block a user