From 92f455dc9e0902626581e8081219dc38c76dff20 Mon Sep 17 00:00:00 2001 From: David Herney Date: Thu, 29 May 2025 03:50:42 -0500 Subject: [PATCH] MDL-85616 mod_glossary: The existence of the variable is controlled --- mod/glossary/showentry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/glossary/showentry.php b/mod/glossary/showentry.php index 63e973e7aa3..b9497fb1502 100644 --- a/mod/glossary/showentry.php +++ b/mod/glossary/showentry.php @@ -85,7 +85,7 @@ if (!empty($courseid)) { echo $OUTPUT->header(); // Needs to be something here to allow linking back to the whole glossary } -if ($glossary) { +if (isset($glossary)) { $url = new moodle_url('view.php', ['id' => $cm->id]); $backlink = html_writer::link($url, get_string('back'), ['class' => 'btn btn-secondary']); echo html_writer::tag('div', $backlink, ['class' => 'tertiary-navigation']);