Skip to content

Commit

Permalink
MDL-49231 mod_glossary: Invalid pivot when printing entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Jan 6, 2016
1 parent 3772736 commit 0c48895
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mod/glossary/print.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,7 @@
// 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));

Expand Down

0 comments on commit 0c48895

Please sign in to comment.