From c4c2f1886d97ec17dc9d84d39995211d6043f90b Mon Sep 17 00:00:00 2001 From: willcast Date: Wed, 5 Nov 2003 15:27:37 +0000 Subject: [PATCH] - Fixed bug (printing-friendly version of an empty glossary) --- mod/glossary/print.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod/glossary/print.php b/mod/glossary/print.php index 1d66474275..51a0dc0648 100644 --- a/mod/glossary/print.php +++ b/mod/glossary/print.php @@ -120,6 +120,10 @@ echo '

' . get_string("course") . ': ' . $course->fullname . '
'; echo get_string("modulename","glossary") . ': ' . $glossary->name . '

'; + if ( !$entries ) { + echo get_string("noentries","glossary"); + exit; + } $groupheader = ''; $tableisopen = 0; foreach ($entries as $entry) { -- 2.39.5