From 73ed4ae8513af1cc6e795b125cc1f319a965bfb4 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 12 Mar 2010 17:03:51 +0000 Subject: Merged Cash's bugfixes from the 1.7 branch (3288:5377). git-svn-id: http://code.elgg.org/elgg/trunk@5378 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/search/search_hooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/search') 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); -- cgit v1.2.3