From: willcast Date: Wed, 5 Nov 2003 15:27:37 +0000 (+0000) Subject: - Fixed bug (printing-friendly version of an empty glossary) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c4c2f1886d97ec17dc9d84d39995211d6043f90b;p=moodle.git - Fixed bug (printing-friendly version of an empty glossary) --- 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) {