MDL-85616 mod_glossary: The existence of the variable is controlled

This commit is contained in:
David Herney
2025-05-29 03:55:14 -05:00
parent 7f5234ab13
commit 57e7f3ae94
+1 -1
View File
@@ -79,7 +79,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']);