Merge branch 'MDL-49231-master-fix2' of https://github.com/FMCorz/moodle

This commit is contained in:
Andrew Nicols 2016-01-06 12:05:34 +08:00
commit 81117053b3

View File

@ -190,11 +190,7 @@ if ( $allentries ) {
// Setting the pivot for the current entry.
if ($printpivot) {
if ($userispivot) {
$pivot = $entry->userid;
} else {
$pivot = $pivotfn($entry);
}
$pivot = $entry->{$pivotkey};
$upperpivot = core_text::strtoupper($pivot);
$pivottoshow = core_text::strtoupper(format_string($pivot, true, $fmtoptions));