Skip to content

Commit

Permalink
No functional change, just me moodling
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 30, 2004
1 parent 1eff7fe commit 916ac02
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions mod/glossary/showentry.php
Expand Up @@ -23,23 +23,22 @@
} }




if ( $eid ) { if ($eid) {
$entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g". $entries[] = get_record("glossary_entries", "id", $eid);
" where (e.id = $eid)");
} elseif ( $concept ) { } else if ($concept) {
$entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g". $entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
" where e.glossaryid = g.id and". " where e.glossaryid = g.id and".
" (e.casesensitive != 0 and ucase(concept) = '" . strtoupper(trim($concept)). "' or". " (e.casesensitive != 0 and ucase(concept) = '" . strtoupper(trim($concept)). "' or".
" e.casesensitive = 0 and concept = '$concept') and". " e.casesensitive = 0 and concept = '$concept') and".
" (g.course = $courseid or g.globalglossary) and". " (g.course = $courseid or g.globalglossary) and".
" e.usedynalink != 0 and g.usedynalink != 0"); " e.usedynalink != 0 and g.usedynalink != 0");
} }
if ( $entries ) {
if ($entries) {
glossary_print_dynaentry($courseid, $entries, $displayformat); glossary_print_dynaentry($courseid, $entries, $displayformat);
} }


close_window_button(); close_window_button();
?>
</body>
</html>


?>

0 comments on commit 916ac02

Please sign in to comment.