MDL-49231 mod_glossary: Invalid pivot when printing entries

This commit is contained in:
Frederic Massart
2016-01-06 11:15:56 +08:00
parent 37727364bb
commit 0c48895bb7
+1 -5
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));