Merge branch 'MDL-61839-35' of git://github.com/mihailges/moodle into MOODLE_35_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2018-08-07 23:56:25 +02:00
+2 -2
View File
@@ -3820,10 +3820,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]);
}
}