Permalink
Browse files

No functional change, just me moodling

  • Loading branch information...
1 parent 1eff7fe commit 916ac02608665606fc7365edd4b0a621fbad33ba moodler committed Jan 30, 2004
Showing with 7 additions and 8 deletions.
  1. +7 −8 mod/glossary/showentry.php
@@ -23,23 +23,22 @@
}
- if ( $eid ) {
- $entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
- " where (e.id = $eid)");
- } elseif ( $concept ) {
+ if ($eid) {
+ $entries[] = get_record("glossary_entries", "id", $eid);
+
+ } else if ($concept) {
$entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
" where e.glossaryid = g.id and".
" (e.casesensitive != 0 and ucase(concept) = '" . strtoupper(trim($concept)). "' or".
" e.casesensitive = 0 and concept = '$concept') and".
" (g.course = $courseid or g.globalglossary) and".
" e.usedynalink != 0 and g.usedynalink != 0");
}
- if ( $entries ) {
+
+ if ($entries) {
glossary_print_dynaentry($courseid, $entries, $displayformat);
}
close_window_button();
-?>
-</body>
-</html>
+?>

0 comments on commit 916ac02

Please sign in to comment.