From 916ac02608665606fc7365edd4b0a621fbad33ba Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 30 Jan 2004 07:29:08 +0000 Subject: [PATCH] No functional change, just me moodling --- mod/glossary/showentry.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mod/glossary/showentry.php b/mod/glossary/showentry.php index 81b02d5fb4..fb88943340 100644 --- a/mod/glossary/showentry.php +++ b/mod/glossary/showentry.php @@ -23,10 +23,10 @@ } - 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". @@ -34,12 +34,11 @@ " (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(); -?> - - +?> -- 2.39.5