From 0c48895bb79ec4e82197a70633f6c20fad9715f7 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 6 Jan 2016 11:15:56 +0800 Subject: [PATCH] MDL-49231 mod_glossary: Invalid pivot when printing entries --- mod/glossary/print.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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));