From: moodler Date: Fri, 30 Jan 2004 07:29:08 +0000 (+0000) Subject: No functional change, just me moodling X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=916ac02608665606fc7365edd4b0a621fbad33ba;p=moodle.git No functional change, just me moodling --- 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(); -?> - - +?>