diff --git a/mod/glossary/print.php b/mod/glossary/print.php index 145cabc3ffb..de51683d3e7 100644 --- a/mod/glossary/print.php +++ b/mod/glossary/print.php @@ -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));