diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index c78f9a2a5f1..9ea22e1eba3 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -3812,10 +3812,10 @@ function glossary_get_entries_by_search($glossary, $context, $query, $fullsearch $options = array()) { global $DB, $USER; - // Remove too little terms. + // Clean terms. $terms = explode(' ', $query); foreach ($terms as $key => $term) { - if (strlen(trim($term, '+-')) < 2) { + if (strlen(trim($term, '+-')) < 1) { unset($terms[$key]); } }