aboutsummaryrefslogtreecommitdiff
path: root/mod/search/search_hooks.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/search/search_hooks.php')
-rw-r--r--mod/search/search_hooks.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/search/search_hooks.php b/mod/search/search_hooks.php
index cc70f43ea..0b606ac66 100644
--- a/mod/search/search_hooks.php
+++ b/mod/search/search_hooks.php
@@ -232,7 +232,7 @@ function search_tags_hook($hook, $type, $value, $params) {
// @todo make one long tag string and run this through the highlight
// function. This might be confusing as it could chop off
// the tag labels.
- if (in_array($query, $tags)) {
+ if (in_array(strtolower($query), array_map('strtolower', $tags))) {
if (is_array($tags)) {
$tag_name_str = elgg_echo("tag_names:$tag_name");
$matched_tags_strs[] = "$tag_name_str: " . implode(', ', $tags);