NOBUG Added missing hiddenfields var from user/profile.php

This commit is contained in:
Sam Hemelryk 2010-07-29 03:03:03 +00:00
parent 58bd461cec
commit eb8d85c1d3

View file

@ -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
$strpublicprofile = get_string('publicprofile');