mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
NOBUG Added missing hiddenfields var from user/profile.php
This commit is contained in:
parent
58bd461cec
commit
eb8d85c1d3
1 changed files with 6 additions and 2 deletions
|
@ -96,7 +96,11 @@ if (isguestuser()) { // Guests can never edit their profile
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (has_capability('moodle/user:viewhiddendetails', $context)) {
|
||||||
|
$hiddenfields = array();
|
||||||
|
} else {
|
||||||
|
$hiddenfields = array_flip(explode(',', $CFG->hiddenuserfields));
|
||||||
|
}
|
||||||
|
|
||||||
// Start setting up the page
|
// Start setting up the page
|
||||||
$strpublicprofile = get_string('publicprofile');
|
$strpublicprofile = get_string('publicprofile');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue