diff --git a/mod/resource/filter.php b/mod/resource/filter.php index c330a852076..0112963fd79 100644 --- a/mod/resource/filter.php +++ b/mod/resource/filter.php @@ -54,7 +54,10 @@ $href_tag_begin = "wwwroot/mod/resource/view.php?id=$cm->id\">"; $currentname = $resource->name; if ($currentname = trim($currentname)) { - $text = resource_link_names($text,$currentname,$href_tag_begin, ""); + //Only if the term is >2 lenght + if (strlen($currentname) >2) { + $text = resource_link_names($text,$currentname,$href_tag_begin, ""); + } } } }