]> git.mjollnir.org Git - moodle.git/commitdiff
- Fixed another bug when showing "dynaentries" (it does not take in count the case...
authorwillcast <willcast>
Sat, 18 Oct 2003 20:37:40 +0000 (20:37 +0000)
committerwillcast <willcast>
Sat, 18 Oct 2003 20:37:40 +0000 (20:37 +0000)
mod/glossary/showentry.php

index a294c1952e77bf0f630487e141ea1e8b478e1655..26d25dfbc6ea43ebd346c34605606c105894b372 100644 (file)
@@ -8,7 +8,8 @@
     print_header();
     $entries = get_records_sql("select e.* from {$CFG->prefix}glossary_entries e, {$CFG->prefix}glossary g".
                                   " where e.glossaryid = g.id and".
-                                      " ucase(concept) = '" . strtoupper(trim($concept)). "' and".
+                                      " (e.casesensitive = 1 and ucase(concept) = '" . strtoupper(trim($concept)). "' or".
+                                      " e.casesensitive = 0 and concept = '$concept') and".
                                       " g.course = $courseid and".
                                       " e.usedynalink = 1 and g.usedynalink = 1");