Permalink
Browse files

- Fixed bug (printing-friendly version of an empty glossary)

  • Loading branch information...
1 parent 2abc70b commit c4c2f1886d97ec17dc9d84d39995211d6043f90b willcast committed Nov 5, 2003
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/glossary/print.php
View
@@ -120,6 +120,10 @@
echo '<p><STRONG>' . get_string("course") . ': <i>' . $course->fullname . '</i><br />';
echo get_string("modulename","glossary") . ': <i>' . $glossary->name . '</i></STRONG></p>';
+ if ( !$entries ) {
+ echo get_string("noentries","glossary");
+ exit;
+ }
$groupheader = '';
$tableisopen = 0;
foreach ($entries as $entry) {

0 comments on commit c4c2f18

Please sign in to comment.